|
@@ -10,9 +10,6 @@ namespace app\index\controller;
|
|
|
use app\common\service\CommonService;
|
|
|
use app\index\exception\ApiException;
|
|
|
use app\index\model\UserModel;
|
|
|
-use app\index\model\VisitorModel;
|
|
|
-use think\console\command\make\Model;
|
|
|
-use think\facade\Cache;
|
|
|
use think\facade\Session;
|
|
|
|
|
|
class Index {
|
|
@@ -28,7 +25,8 @@ class Index {
|
|
|
$info = (new UserModel())::where(['unionid' => Session::get('wxId'), 'channel_id' => $channelId])
|
|
|
->order(['id' => 'desc'])->find();
|
|
|
if (empty(Session::get('wxId')) || empty($info)){
|
|
|
- header("Location:".CommonService::getAuthUrl($channelId));
|
|
|
+ $temp = CommonService::getAuthUrl($channelId);
|
|
|
+ header("Location:".$temp);
|
|
|
die();
|
|
|
}
|
|
|
$params = [
|