Commit 17c4f1de authored by clone's avatar clone

bug

parent 9db153d1
......@@ -53,18 +53,20 @@ class Index
$id = $this->wxInfoModel->addWxInfo($userInfo);
}
} catch (Exception $exception) {
Log::record("wx authorization error,msg:".$exception);
Log::record("wx authorization error,msg:" . $exception);
}
$conditions["buyer_id"] = $id;
$fields = "id,user_nick,user_phone,user_pic,other_pic";
$user_info = $this->userModel->getUserByWhere($conditions, $fields);
if(count($user_info) > 0){
if (count($user_info) > 0) {
//下载页
header(CURRENT_URL."app/download_c");
echo 111111;
header("Location:" . CURRENT_URL . "app/download_c");
die();
}else{
} else {
//绑定页
header(CURRENT_URL."app/dist/index.html#/inviteRegister?referrer_id=160&referrer_source=10");
header("Location:" . CURRENT_URL . "app/dist/index.html#/inviteRegister?referrer_id=160&referrer_source=10");
die();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment