Commit 6466add5 authored by zhuwei's avatar zhuwei

log

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