alipay callback

master
tpingzhang 5 years ago
parent a9efb0d08b
commit d392716b35

@ -429,6 +429,8 @@ class PayH5Controller extends BaseController{
} }
$discount = $this->get_discount($param['game_id'], $user['promote_id'], $param['user_id']); $discount = $this->get_discount($param['game_id'], $user['promote_id'], $param['user_id']);
$discount = $discount['discount']; $discount = $discount['discount'];
$param['callback'] = C('PAY_DOMAIN')."/sdk.php/Spend/paycallback/orderno/".$out_trade_no.'/game_id/'.$param['game_id']."/paytype/alipay";
// if(!is_check_apply_promote($param['game_id'],$user['promote_id'])){ // if(!is_check_apply_promote($param['game_id'],$user['promote_id'])){
// $user['promote_id']=0; // $user['promote_id']=0;
// $user['promote_account']="自然注册"; // $user['promote_account']="自然注册";
@ -481,6 +483,8 @@ class PayH5Controller extends BaseController{
} }
$discount = $this->get_discount($param['game_id'],$user['promote_id'],$param['user_id']); $discount = $this->get_discount($param['game_id'],$user['promote_id'],$param['user_id']);
$discount = $discount['discount']; $discount = $discount['discount'];
$param['callback'] = C('PAY_DOMAIN')."/sdk.php/Spend/paycallback/orderno/".$out_trade_no.'/game_id/'.$param['game_id']."/paytype/alipay";
$vo = new \Think\Pay\PayVo(); $vo = new \Think\Pay\PayVo();
$vo->setBody("充值") $vo->setBody("充值")
->setFee($param['price'])//支付金额 ->setFee($param['price'])//支付金额
@ -513,6 +517,7 @@ class PayH5Controller extends BaseController{
if($param['is_uc']==1){ if($param['is_uc']==1){
return $pay->buildRequestForm($vo,1); return $pay->buildRequestForm($vo,1);
}else{ }else{
$pay_['url']= $pay->buildRequestForm($vo, 0, $param); $pay_['url']= $pay->buildRequestForm($vo, 0, $param);
$pay_['out_trade_no']= $out_trade_no; $pay_['out_trade_no']= $out_trade_no;
return $pay_; return $pay_;

Loading…
Cancel
Save