作者 xiaohu thinkpad

登录处理

@@ -146,7 +146,7 @@ class IndexController extends HomeBaseController @@ -146,7 +146,7 @@ class IndexController extends HomeBaseController
146 146
147 $gid = $req->param('gid'); 147 $gid = $req->param('gid');
148 $res = Db::name('goods')->where(['id' => $gid])->find(); 148 $res = Db::name('goods')->where(['id' => $gid])->find();
149 - $id = session('user.id'); 149 + $id = session('pay_uid');
150 $data['gid'] = $gid; 150 $data['gid'] = $gid;
151 $data['uid'] = $id; 151 $data['uid'] = $id;
152 $data['create_time'] = time(); 152 $data['create_time'] = time();
@@ -82,7 +82,7 @@ try { @@ -82,7 +82,7 @@ try {
82 WeixinJSBridge.log(res.err_msg); 82 WeixinJSBridge.log(res.err_msg);
83 //alert(res.err_code); 83 //alert(res.err_code);
84 if (res.err_msg == 'get_brand_wcpay_request:ok') { 84 if (res.err_msg == 'get_brand_wcpay_request:ok') {
85 - window.location.href = 'http://wx.youlj.cn/user/order/pay_success.html'; 85 + window.location.href = 'http://wx.youlj.cn/portal/index/pay_success.html';
86 } else if (res.err_msg == 'get_brand_wcpay_request:cancel') { 86 } else if (res.err_msg == 'get_brand_wcpay_request:cancel') {
87 window.history.go(-1); 87 window.history.go(-1);
88 } 88 }