优化个人0值重算

master
chenzhi 5 years ago
parent 6b9358c651
commit 3ef8061e3e

@ -6,6 +6,7 @@ use Think\Controller;
/** /**
* 聚合渠道结算接口对接 * 聚合渠道结算接口对接
* @author cz * @author cz
* TODO: 罚款的游戏没有流水不统计补点为0 无法重算
*/ */
class CompanyStatementSetController extends Controller { class CompanyStatementSetController extends Controller {
public $cpapihost; public $cpapihost;
@ -1046,7 +1047,9 @@ class CompanyStatementSetController extends Controller {
* 保存信息汇总信息 * 保存信息汇总信息
*/ */
public function savePromotateUserPool($data){ public function savePromotateUserPool($data){
if(empty($data['create_lack_ids']) && empty($data['del_lack_ids']) && empty($data['info_ids'])){ return;} if($data['withdraw_type'] == 2 && empty($data['create_lack_ids']) && empty($data['del_lack_ids']) && empty($data['info_ids'])){ //补点为空不重算
return ;
}
if($data['statement_money'] == 0){ if($data['statement_money'] == 0){
$data['verify_status'] = 5; $data['verify_status'] = 5;
$data['verify_log'] = json_encode(["create_user"=>"system","create_time"=>date("Y-m-d H:i:s"),"verify_user"=>"system","verify_time"=>date("Y-m-d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y-m-d H:i:s")]); $data['verify_log'] = json_encode(["create_user"=>"system","create_time"=>date("Y-m-d H:i:s"),"verify_user"=>"system","verify_time"=>date("Y-m-d H:i:s"),"payment_user"=>"system","payment_time"=>date("Y-m-d H:i:s")]);

Loading…
Cancel
Save