Explorar o código

feat():授权

geek %!s(int64=4) %!d(string=hai) anos
pai
achega
cbc66fdc8c

+ 1 - 1
application/common/service/SettingService.php

@@ -16,7 +16,7 @@ class SettingService {
 
     const TOKEN = 'Bearer a1aw1av25bk1usqjv7r84mw9knpv3sma';
 
-    const BASE_URL = 'http://api.mudu.tv/';
+    const BASE_URL = 'http://api.webcasting.bizconfstreaming.com/';
 
     public function verifyChannelName(int $channelId,string $channelName) {
         $client = new Client();

+ 1 - 12
application/index/controller/Index.php

@@ -31,17 +31,6 @@ class Index {
             header("Location:".CommonService::getAuthUrl($channelId));
             die();
         }
-//        $model = new VisitorModel();
-//        $visitorInfo = $model::where(['unionid' => Session::get('wxId')])->find();
-
-//        if (empty($visitorInfo)) {
-//            $model->insertGetId([
-//                'visitorId' => $visitorId,
-//                'unionid' => Session::get('wxId'),
-//            ]);
-//        } else {
-//            $visitorId = $visitorInfo['visitorId'];
-//        }
         $params = [
             'id'     => $info['channel_id'],
             'userid' => $info['unionid'],
@@ -49,7 +38,7 @@ class Index {
             'avatar' => $info['avatar'],
             'key'    => $info['key']
         ];
-        header('Location:http://mudu.tv/activity.php?a=userAssign&'.http_build_query($params));
+        header('Location:http://webcasting.bizconfstreaming.com/activity.php?a=userAssign&'.http_build_query($params));
         die();
         //增加客户自己的验证逻辑,例如登录,关注,付费,填手机号等
         $key = md5($visitorId.$data['channel_auth_code']);

+ 1 - 1
application/index/controller/User.php

@@ -37,7 +37,7 @@ class User extends BaseController {
             'avatar'     => input('avatar'),
             'key'        => $params['key'],
         ]);
-        header('Location:http://mudu.tv/activity.php?a=userAssign&'.http_build_query($params));
+        header('Location:http://webcasting.bizconfstreaming.com/activity.php?a=userAssign&'.http_build_query($params));
     }
 
     public function clearSession() {