修改bug

master
ELF 5 years ago
parent 90d5d53994
commit 1bffd62357

@ -509,11 +509,25 @@ class PromoteService {
$fromPromote = M('promote', 'tab_')->where(['id' => $fromPromoteId])->find();
$toBalanceCoin = $this->getBalanceCoin($toPromoteId, $gameId);
$fromBalanceCoin = 0;
if ($isUseBind && $gameId == 0) {
return [
'msg' => '请选择游戏',
'status' => false,
];
}
if ($isUseBind) {
$fromBalanceCoin = $this->getBalanceCoin($fromPromoteId, $gameId);
} else {
$fromBalanceCoin = $this->getBalanceCoin($fromPromoteId, 0);
}
if ($isUseBind && $gameId) {
return [
'msg' => '平台币不足',
'status' => false,
];
}
if ($fromBalanceCoin < $num) {
return [

Loading…
Cancel
Save