no message
This commit is contained in:
parent
e0af5dbcb6
commit
651f83b2a7
@ -79,9 +79,15 @@ final class Test extends Base
|
|||||||
return $oUserRoot->save();
|
return $oUserRoot->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function doveDown()
|
public function userDown($aParam)
|
||||||
{
|
{
|
||||||
$oUserRoot = ModelUser::where("email", "dove")->first();
|
$sUser = $aParam["aArg"][1] ?? false;
|
||||||
|
|
||||||
|
if (!$sUser) {
|
||||||
|
return "需要arg1";
|
||||||
|
}
|
||||||
|
|
||||||
|
$oUserRoot = ModelUser::where("email", $sUser)->first();
|
||||||
$oUserRoot->u = 0;
|
$oUserRoot->u = 0;
|
||||||
$oUserRoot->class = 1;
|
$oUserRoot->class = 1;
|
||||||
$oUserRoot->transfer_enable = 0;
|
$oUserRoot->transfer_enable = 0;
|
||||||
@ -97,9 +103,16 @@ final class Test extends Base
|
|||||||
return $oUserRoot->save();
|
return $oUserRoot->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function doveUp()
|
public function userUp($aParam)
|
||||||
{
|
{
|
||||||
$oUserRoot = ModelUser::where("email", "dove")->first();
|
|
||||||
|
$sUser = $aParam["aArg"][1] ?? false;
|
||||||
|
|
||||||
|
if (!$sUser) {
|
||||||
|
return "需要arg1";
|
||||||
|
}
|
||||||
|
|
||||||
|
$oUserRoot = ModelUser::where("email", $sUser)->first();
|
||||||
$oUserRoot->u = 222;
|
$oUserRoot->u = 222;
|
||||||
$oUserRoot->class = 2;
|
$oUserRoot->class = 2;
|
||||||
$oUserRoot->transfer_enable = 111;
|
$oUserRoot->transfer_enable = 111;
|
||||||
@ -115,9 +128,15 @@ final class Test extends Base
|
|||||||
return $oUserRoot->save();
|
return $oUserRoot->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function doveExpire()
|
public function userExpire()
|
||||||
{
|
{
|
||||||
$oUserRoot = ModelUser::where("email", "dove")->first();
|
$sUser = $aParam["aArg"][1] ?? false;
|
||||||
|
|
||||||
|
if (!$sUser) {
|
||||||
|
return "需要arg1";
|
||||||
|
}
|
||||||
|
|
||||||
|
$oUserRoot = ModelUser::where("email", $sUser)->first();
|
||||||
$oUserRoot->u = 222;
|
$oUserRoot->u = 222;
|
||||||
$oUserRoot->class = 2;
|
$oUserRoot->class = 2;
|
||||||
$oUserRoot->transfer_enable = 111;
|
$oUserRoot->transfer_enable = 111;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user