|
|
@ -18,16 +18,17 @@ class GameApi {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function game_pay_notify($param=null,$code=1,$is_uc=0){
|
|
|
|
public function game_pay_notify($param=null,$code=1,$is_uc=0, $isIosTest=0){
|
|
|
|
Log::write("notice:".serialize($param), Log::DEBUG);
|
|
|
|
Log::write("notice:".serialize($param), Log::DEBUG);
|
|
|
|
|
|
|
|
if (!$isIosTest) { // 苹果内购 不判断订单支付成功 正常通知CP
|
|
|
|
$pay_map['pay_status'] = 1;
|
|
|
|
$pay_map['pay_status'] = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
$pay_map['pay_game_status'] = 0;
|
|
|
|
$pay_map['pay_game_status'] = 0;
|
|
|
|
if($is_uc){
|
|
|
|
if($is_uc){
|
|
|
|
$uc=new Ucservice();
|
|
|
|
$uc=new Ucservice();
|
|
|
|
$pay_map['pay_order_number']=$param['out_trade_no'];
|
|
|
|
$pay_map['pay_order_number']=$param['out_trade_no'];
|
|
|
|
$pay_data=$uc->uc_spend_find($pay_map['pay_order_number']);
|
|
|
|
$pay_data=$uc->uc_spend_find($pay_map['pay_order_number']);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|
$pay_map['pay_order_number'] = $param['out_trade_no'];
|
|
|
|
$pay_map['pay_order_number'] = $param['out_trade_no'];
|
|
|
|
$pay_data = M("Spend","tab_")->where($pay_map)->find();
|
|
|
|
$pay_data = M("Spend","tab_")->where($pay_map)->find();
|
|
|
|
}
|
|
|
|
}
|
|
|
|