|
|
@ -1308,7 +1308,7 @@ function recordPromoteLogs($module,$action_type) {
|
|
|
|
* game_id=>游戏id,
|
|
|
|
* game_id=>游戏id,
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
function getAvailableBalance($promote_id=0,$game_id=0,$server_id=0) {
|
|
|
|
function getAvailableBalance($promote_id=0,$game_id=0,$server_id='') {
|
|
|
|
|
|
|
|
|
|
|
|
if (!$promote_id||!$game_id||!$server_id) {
|
|
|
|
if (!$promote_id||!$game_id||!$server_id) {
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
@ -1316,7 +1316,7 @@ function getAvailableBalance($promote_id=0,$game_id=0,$server_id=0) {
|
|
|
|
|
|
|
|
|
|
|
|
$availableBalanceData = M('promote_game_available_balance','tab_')
|
|
|
|
$availableBalanceData = M('promote_game_available_balance','tab_')
|
|
|
|
->field('available_balance')
|
|
|
|
->field('available_balance')
|
|
|
|
->where(['promote_id'=>$promote_id,'game_id'=>$game_id,'server_id'=>$server_id])
|
|
|
|
->where(['promote_id'=>$promote_id,'game_id'=>$game_id,'server_name'=>$server_id])
|
|
|
|
->find();
|
|
|
|
->find();
|
|
|
|
|
|
|
|
|
|
|
|
return $availableBalanceData['available_balance']?$availableBalanceData['available_balance']:0;
|
|
|
|
return $availableBalanceData['available_balance']?$availableBalanceData['available_balance']:0;
|
|
|
|