作者 anyv
1 个管道 的构建 通过 耗费 21 秒

5

... ... @@ -58,6 +58,7 @@ class IndexController extends HomeBaseController
* @param $appId
*/
protected function wechatUserLogin($wechat_user,$findThirdPartyUser,$openid,$appId){
dump($wechat_user);
$currentTime = time();
$ip = $this->request->ip(0, true);
$token = cmf_generate_user_token($findThirdPartyUser['user_id'], 'public');
... ...
... ... @@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController
*/
public function checkWeChatUserLogin()
{
/*$user = Db::name('user')->where('id',6)->find();
/*$user = Db::name('user')->where('id',158)->find();
cmf_update_current_user($user);*/
$userId = cmf_get_current_user_id();
if (empty($userId)) {
... ...