...
|
...
|
@@ -31,9 +31,11 @@ class OpenServerController extends HomeBaseController |
|
|
exit;
|
|
|
}
|
|
|
public function test(){
|
|
|
dump(cache('referrer'));
|
|
|
// dump(cache('referrer'));
|
|
|
dump(cache('openid'));
|
|
|
dump(cache('ccc'));
|
|
|
dump(cache('admin_id'));
|
|
|
exit();
|
|
|
dump(cache('result'));
|
|
|
dump(cache('result1'));
|
|
|
dump(cache('third_party_user'));
|
...
|
...
|
@@ -55,11 +57,13 @@ class OpenServerController extends HomeBaseController |
|
|
真正让家长省心,孩子无忧。感谢关注。';
|
|
|
}else{
|
|
|
//获取用户openid
|
|
|
/*$openid=$message->FromUserName;
|
|
|
$openid=$message->FromUserName;
|
|
|
cache('openid',$openid);
|
|
|
$admin_id=substr($message->EventKey,8);
|
|
|
cache('admin_id',$admin_id);
|
|
|
$third_party_user = Db::name('third_party_user')->where('openid',$openid)->find();
|
|
|
cache('ccc',$message->EventKey);
|
|
|
|
|
|
/*$third_party_user = Db::name('third_party_user')->where('openid',$openid)->find();
|
|
|
cache('third_party_user',$third_party_user);
|
|
|
if(!empty($third_party_user)){
|
|
|
$user = Db::name('user')->where('id',$third_party_user['user_id'])->find();
|
...
|
...
|
|