wesmiler 6 mesi fa
parent
commit
fb62c07f09

+ 1 - 1
app/Http/Controllers/Api/v1/IndexController.php

@@ -42,7 +42,7 @@ class IndexController extends webApp
                     'withdraw_open' => ConfigService::make()->getConfigByCode('withdraw_open', 1),
                     'withdraw_min' => ConfigService::make()->getConfigByCode('withdraw_min', 0),
                     'withdraw_fee' => ConfigService::make()->getConfigByCode('withdraw_fee', 0),
-                    'imchat_url' => ConfigService::make()->getConfigByCode('imchat_url', ''),
+                    'kfUrl' => ConfigService::make()->getConfigByCode('wechat_kf_url', ''),
                     'img_compress'=> ConfigService::make()->getConfigByCode('preview_img_compress', ''),
                     'notices' => [
                         ['id' => 1, 'title' => '平台上线', 'url' => ''],

+ 0 - 2
app/Http/Controllers/Api/v1/MemberController.php

@@ -20,8 +20,6 @@ class MemberController extends webApp
      */
     public function info()
     {
-        $url = MpService::make()->getServiceUrl();
-        var_dump($url);
         $userId = request()->post('user_id', 0);
         $info = MemberService::make()->getInfo($userId ? $userId : $this->userId);
         if ($info) {

+ 4 - 0
app/Services/MpService.php

@@ -18,6 +18,8 @@ class MpService extends BaseService
     protected $expireTime = 7200; // 缓存日志时长
     protected $mpAppid = '';
     protected $mpAppSecret = '';
+    protected $corpid = '';
+    protected $corpsecret = '';
 
     // 接口地址
     protected $apiUrls = [
@@ -44,6 +46,8 @@ class MpService extends BaseService
     {
         $this->mpAppid = ConfigService::make()->getConfigByCode('wechat_mp_appid');
         $this->mpAppSecret = ConfigService::make()->getConfigByCode('wechat_mp_appsecret');
+        $this->corpid = ConfigService::make()->getConfigByCode('wechat_corpid');
+        $this->corpsecret = ConfigService::make()->getConfigByCode('wechat_corpsecret');
     }
 
     /**