no message
This commit is contained in:
parent
d43429532f
commit
2652a40c7f
@ -61,10 +61,10 @@ class Box extends Base {
|
|||||||
|
|
||||||
public function github_tag_add($aParam)
|
public function github_tag_add($aParam)
|
||||||
{
|
{
|
||||||
$sTag = $aParam["aArg"][1] ?? false;
|
$aTag = $aParam["aArg"] ?? false;
|
||||||
$sType = $aParam["aArg"][2] ?? false;
|
$sType = $aParam["aArg"][2] ?? false;
|
||||||
|
|
||||||
if (!$sTag) {
|
if (!$aTag) {
|
||||||
return "需要arg[1],tag。";
|
return "需要arg[1],tag。";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,6 +72,8 @@ class Box extends Base {
|
|||||||
return "需要arg[2],cn中文,en英文。";
|
return "需要arg[2],cn中文,en英文。";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sTag = implode(" ", $aTag);
|
||||||
|
|
||||||
$oGithubTag = new GithubTag();
|
$oGithubTag = new GithubTag();
|
||||||
$oGithubTag->tag = $sTag;
|
$oGithubTag->tag = $sTag;
|
||||||
$oGithubTag->type = $sType;
|
$oGithubTag->type = $sType;
|
||||||
@ -84,7 +86,7 @@ class Box extends Base {
|
|||||||
{
|
{
|
||||||
$iId = $aParam["aOption"][1] ?? false;
|
$iId = $aParam["aOption"][1] ?? false;
|
||||||
$sField = $aParam["aOption"][2] ?? false;
|
$sField = $aParam["aOption"][2] ?? false;
|
||||||
$sValue = $aParam["aArg"][1] ?? false;
|
$aValue = $aParam["aArg"] ?? false;
|
||||||
|
|
||||||
if (!$iId) {
|
if (!$iId) {
|
||||||
return "需要option[1],id。";
|
return "需要option[1],id。";
|
||||||
@ -94,10 +96,12 @@ class Box extends Base {
|
|||||||
return "需要option[2],field。";
|
return "需要option[2],field。";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$sValue) {
|
if (!$aValue) {
|
||||||
return "需要arg[1],value。";
|
return "需要arg[1],value。";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sValue = implode(" ", $aValue);
|
||||||
|
|
||||||
$oGithubTag = GithubTag::find($iId);
|
$oGithubTag = GithubTag::find($iId);
|
||||||
|
|
||||||
if (!$oGithubTag) {
|
if (!$oGithubTag) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user