作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

意见修改

... ... @@ -255,6 +255,12 @@ class PayController extends WeChatBaseController
}
public function cancel(){
$param=$this->request->param();
Db::name('light_order')->where(['light_id'=>$param['light_id'],'status'=>0])->delete();
$this->redirect(url('portal/index/lightOrder',array('id',$param['light_id'])));
}
... ...
... ... @@ -16,7 +16,7 @@
WeixinJSBridge.log(res.err_msg);
// alert(res.err_code+res.err_desc+res.err_msg);
if (res.err_msg=='get_brand_wcpay_request:cancel'){
window.location.href="{:url('portal/pay/cancel')}"
window.location.href="{:url('portal/pay/cancel')}"+'id/'+"{$list.light_id}"
//支付取消逻辑
}else if (res.err_msg=='get_brand_wcpay_request:ok'){
window.location.href="{:url('user/User/myLight')}"
... ...