...
|
...
|
@@ -53,7 +53,7 @@ class Wechat extends \think\addons\Controller |
|
|
switch ($event) {
|
|
|
case 'subscribe'://添加关注
|
|
|
$key = explode('_', $eventkey);
|
|
|
$this->joinHouse($key[1],$openid);
|
|
|
return $this->joinHouse($key[1],$openid);
|
|
|
case 'unsubscribe'://取消关注
|
|
|
return '';
|
|
|
case 'LOCATION'://获取地理位置
|
...
|
...
|
@@ -61,7 +61,7 @@ class Wechat extends \think\addons\Controller |
|
|
case 'VIEW': //跳转链接,eventkey为链接
|
|
|
return '';
|
|
|
case 'SCAN': //扫码
|
|
|
$this->joinHouse($eventkey,$openid);
|
|
|
return $this->joinHouse($eventkey,$openid);
|
|
|
default:
|
|
|
break;
|
|
|
}
|
...
|
...
|
|