|
|
|
@ -509,12 +509,26 @@ 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 [
|
|
|
|
|
'msg' => '平台币不足',
|
|
|
|
|