@ -748,6 +748,8 @@ class TimingController extends AdminController {
return 9;
return 9;
case 'yeepay': //易宝支付17
case 'yeepay': //易宝支付17
return 17;
return 17;
case 'ptb_pay':
return 0;
default:
default:
return '';
return '';
}
}
@ -785,24 +787,24 @@ class TimingController extends AdminController {
CASE WHEN substring_index(substring_index(`chain`,'/',2),'/',-1) !='' THEN substring_index(substring_index(`chain`,'/',2),'/',-1) ELSE promote_id END promote_id,pay_way,market_admin_id")
CASE WHEN substring_index(substring_index(`chain`,'/',2),'/',-1) !='' THEN substring_index(substring_index(`chain`,'/',2),'/',-1) ELSE promote_id END promote_id,pay_way,market_admin_id")
->join("left join tab_promote on tab_spend.promote_id = tab_promote.id")
->join("left join tab_promote on tab_spend.promote_id = tab_promote.id")
->join("left join tab_game game on game.id=tab_spend.game_id")
->join("left join tab_game game on game.id=tab_spend.game_id")
CASE WHEN substring_index(substring_index(`chain`,'/',2),'/',-1) !='' THEN substring_index(substring_index(`chain`,'/',2),'/',-1) ELSE tab_pay_info.promote_id END promote_id,tab_deposit.pay_way,market_admin_id")
// CASE WHEN substring_index(substring_index(`chain`,'/',2),'/',-1) !='' THEN substring_index(substring_index(`chain`,'/',2),'/',-1) ELSE tab_pay_info.promote_id END promote_id,tab_deposit.pay_way,market_admin_id")
->join("inner join tab_pay_info on tab_pay_info.order_id=tab_deposit.pay_order_number")
// ->join("inner join tab_pay_info on tab_pay_info.order_id=tab_deposit.pay_order_number")
->join("left join tab_promote on tab_deposit.promote_id = tab_promote.id")
// ->join("left join tab_promote on tab_deposit.promote_id = tab_promote.id")
->join("left join tab_game game on game.id=tab_pay_info.game_id")
// ->join("left join tab_game game on game.id=tab_pay_info.game_id")