no message
This commit is contained in:
parent
5873c129e2
commit
9daa478a63
@ -7,6 +7,7 @@ use App\Services\Tg\Hook\Dog;
|
|||||||
use App\Services\Tg\ReportUser as ServiceTgReportUser;
|
use App\Services\Tg\ReportUser as ServiceTgReportUser;
|
||||||
use App\Utils\Tools;
|
use App\Utils\Tools;
|
||||||
use App\Services\CountUser as ServiceCountUser;
|
use App\Services\CountUser as ServiceCountUser;
|
||||||
|
use App\Models\UserMoneyLog;
|
||||||
|
|
||||||
class User extends Base {
|
class User extends Base {
|
||||||
|
|
||||||
@ -148,9 +149,19 @@ class User extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($sConfirm == "y") {
|
if ($sConfirm == "y") {
|
||||||
|
$iUserMoneyOld = $oUser->money;
|
||||||
|
|
||||||
$oUser->money += $iMoney;
|
$oUser->money += $iMoney;
|
||||||
$oUser->save();
|
$oUser->save();
|
||||||
|
|
||||||
|
(new UserMoneyLog())->add(
|
||||||
|
$oUser->id,
|
||||||
|
(float) $iUserMoneyOld,
|
||||||
|
(float) $oUser->money,
|
||||||
|
(float) $iMoney,
|
||||||
|
'系统赠送金额'
|
||||||
|
);
|
||||||
|
|
||||||
return $this->toJson($oUser);
|
return $this->toJson($oUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user