...
|
...
|
@@ -32,12 +32,10 @@ class OpenServerController extends HomeBaseController |
|
|
}
|
|
|
public function test(){
|
|
|
// dump(cache('referrer'));
|
|
|
dump(cache('openid'));
|
|
|
dump(cache('ccc'));
|
|
|
dump(cache('admin_id'));
|
|
|
dump(cache('user_data'));
|
|
|
dump(cache('user_id'));
|
|
|
dump(cache('a'));
|
|
|
dump(cache('b'));
|
|
|
dump(cache('c'));
|
|
|
dump(cache('param'));
|
|
|
exit();
|
|
|
dump(cache('result'));
|
|
|
dump(cache('result1'));
|
...
|
...
|
@@ -62,7 +60,6 @@ class OpenServerController extends HomeBaseController |
|
|
}else{
|
|
|
//获取用户openid
|
|
|
$openid=$message->FromUserName;
|
|
|
cache('openid',$openid);
|
|
|
$param=substr($message->EventKey,8);
|
|
|
$data = explode("-",$param);
|
|
|
$my_user_id = $data[0];
|
...
|
...
|
@@ -91,14 +88,16 @@ class OpenServerController extends HomeBaseController |
|
|
}
|
|
|
break;
|
|
|
case 'SCAN':
|
|
|
cache('a',"@@@@@");
|
|
|
//获取用户openid
|
|
|
$openid=$message->FromUserName;
|
|
|
cache('openid',$openid);
|
|
|
$param=substr($message->EventKey,8);
|
|
|
cache('param',$param);
|
|
|
$data = explode("-",$param);
|
|
|
$my_user_id = $data[0];
|
|
|
$status = $data[1];
|
|
|
cache('b',$my_user_id);
|
|
|
cache('c',$status);
|
|
|
$third_party_user = Db::name('third_party_user')->where('openid',$openid)->find();
|
|
|
if(!$third_party_user){
|
|
|
//获取用户信息
|
...
|
...
|
|