作者 xiaohu thinkpad

登录处理

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