1
This commit is contained in:
parent
98223c63ae
commit
ce8c4d9d49
@ -29,6 +29,15 @@ class OutAppMintController extends BaseController {
|
||||
'accoutn_id' => $accountId,
|
||||
'uuid' => $uniid
|
||||
)));
|
||||
$userDb = User::find($accountId);
|
||||
if (empty($userDb)) {
|
||||
myself()->_rspErr(1, 'user not found');
|
||||
return;
|
||||
}
|
||||
if ($userDb['gold'] < 0) {
|
||||
myself()->_rspErr(1, 'is valid user');
|
||||
return;
|
||||
}
|
||||
$heroDb = Hero::findByAccountIdEx($accountId, $uniid);
|
||||
if (!$heroDb) {
|
||||
myself()->_rspErr(1, 'hero not found');
|
||||
|
Loading…
x
Reference in New Issue
Block a user