Commit 4e483d80 authored by clone's avatar clone

bug

parent 1139e504
...@@ -413,7 +413,7 @@ class PerformanceService ...@@ -413,7 +413,7 @@ class PerformanceService
if ($start_time == $now_date && $end_time == $now_date) { if ($start_time == $now_date && $end_time == $now_date) {
$param["id"] = array( "in", $agent_ids ); $param["id"] = array( "in", $agent_ids );
//todo 1.获取所有经纪人 // 1.获取所有经纪人
$field = "id as agent_id,store_id"; $field = "id as agent_id,store_id";
$group = ""; $group = "";
if ($is_store == 2) { if ($is_store == 2) {
......
...@@ -47,6 +47,7 @@ class Index ...@@ -47,6 +47,7 @@ class Index
// 验证open_id是否已经存在,存在则更新 // 验证open_id是否已经存在,存在则更新
$wxInfoObj = $this->wxInfoModel->getWxInfoByOpenId($wx_union_id); $wxInfoObj = $this->wxInfoModel->getWxInfoByOpenId($wx_union_id);
$id = 0;
try { try {
if ($wxInfoObj && count($wxInfoObj) > 0) { if ($wxInfoObj && count($wxInfoObj) > 0) {
$userInfo["id"] = $wxInfoObj[0]["id"]; $userInfo["id"] = $wxInfoObj[0]["id"];
...@@ -60,6 +61,8 @@ class Index ...@@ -60,6 +61,8 @@ class Index
$conditions["buyer_id"] = $id; $conditions["buyer_id"] = $id;
$fields = "id,user_nick,user_phone,user_pic,other_pic"; $fields = "id,user_nick,user_phone,user_pic,other_pic";
$user_info = $this->userModel->getUserByWhere($conditions, $fields); $user_info = $this->userModel->getUserByWhere($conditions, $fields);
Log::record("session wx -----------------" . json_encode($user_info), "info");
if (count($user_info) > 0) { if (count($user_info) > 0) {
//下载页 //下载页
header("Location:" . CURRENT_URL . "app/download_c"); header("Location:" . CURRENT_URL . "app/download_c");
......
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