Commit 6466add5 authored by zhuwei's avatar zhuwei

log

parent e2c34a76
...@@ -44,9 +44,12 @@ class ShareShop extends Basic ...@@ -44,9 +44,12 @@ class ShareShop extends Basic
$this->_wxApi->getWxCode($this->url.'?'.http_build_query($params)); $this->_wxApi->getWxCode($this->url.'?'.http_build_query($params));
} else { } else {
$userInfo = $this->_wxApi->getUserInfoByAccessToken($code); $userInfo = $this->_wxApi->getUserInfoByAccessToken($code);
Log::write(json_encode($userInfo), 'shareShop'); //记录日志 dump('===========================');
dump('===========================');
//dump($userInfo);exit; dump('===========================');
dump('===========================');
dump('===========================');
dump($userInfo);
if (!$userInfo['wx_open_id']) { if (!$userInfo['wx_open_id']) {
$this->_wxApi->getWxCode($this->url.'?'.http_build_query($params)); $this->_wxApi->getWxCode($this->url.'?'.http_build_query($params));
}else{ }else{
...@@ -76,7 +79,15 @@ class ShareShop extends Basic ...@@ -76,7 +79,15 @@ class ShareShop extends Basic
} }
} }
Log::write(json_encode($params), 'shareShop'); //记录日志
dump('===========================');
dump('===========================');
dump('===========================');
dump('===========================');
dump('===========================');
dump($params);
$this->assign('data',json_encode($params)); $this->assign('data',json_encode($params));
return view("share_detail"); return view("share_detail");
......
...@@ -451,6 +451,8 @@ class UserService ...@@ -451,6 +451,8 @@ class UserService
$param['wx_open_id'] = $open_id; $param['wx_open_id'] = $open_id;
$fields='a.user_phone'; $fields='a.user_phone';
$result = $this->user->getUserInfoByOpenId($param, $fields); $result = $this->user->getUserInfoByOpenId($param, $fields);
dump($param);
dump($result);
if ($result) { if ($result) {
return true; return true;
......
...@@ -982,6 +982,7 @@ class Users extends Model ...@@ -982,6 +982,7 @@ class Users extends Model
->join("u_wx_info b", "a.buyer_id=b.id", "left") ->join("u_wx_info b", "a.buyer_id=b.id", "left")
->where($where_) ->where($where_)
->select(); ->select();
dump($this->getLastSql());
return $data; return $data;
} }
} }
......
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