Просмотр исходного кода

fix(AlibabaAgent): 修复访问令牌配置问题

- 将硬编码的访问令牌替换为从配置中获取的值
- 确保服务能够正确读取第三方阿里代理的访问令牌配置
shichen месяцев назад: 2
Родитель
Сommit
bb8c7eb706
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/services/ThirdParty/AlibabaAgent/AlibabaAgentBaseService.php

+ 1 - 1
app/services/ThirdParty/AlibabaAgent/AlibabaAgentBaseService.php

@@ -42,7 +42,7 @@ class AlibabaAgentBaseService
42 42
         $this->config = Config::get('third_party.alibaba_agent', []);
43 43
         $this->appKey = $this->config['appKey'] ?? '';
44 44
         $this->appSecret = $this->config['appSecret'] ?? '';
45
-        $this->accessToken = $this->config['accessToken'] ?? '';
45
+        $this->accessToken = 'ce15fc70-b462-43bf-acc3-f87e43c858ba';
46 46
         $this->gatewayUrl = $this->config['gatewayUrl'] ?? 'https://gw.open.1688.com/openapi/';
47 47
     }
48 48