Procházet zdrojové kódy

所有平台统一改为测试账号进行测试

shizhongqi před 8 měsíci
rodič
revize
a711971dcb

+ 1 - 1
common/components/delivery/platform/fengniao/Auth.php

@@ -31,7 +31,7 @@ class Auth
      */
     public function __construct()
     {
-        $isProduction = getenv('YII_ENV') == 'production';
+        $isProduction = getenv('YII_ENV') == 'production'; // TODO 先变更为测试  --- production  /  dev
 
         // 配置(需要替换为真实的appId和appSecret)
         $this->appId = '6587209115185920913';// 3659064244254722812  --  6587209115185920913

+ 1 - 1
common/components/delivery/platform/fengniao/Fengniao.php

@@ -17,7 +17,7 @@ class Fengniao
     public function __construct($accessToken = '')
     {
         // 根据环境设置基础URL
-        if (getenv('YII_ENV') == 'production') {
+        if (getenv('YII_ENV') == 'production') { // TODO 先变更为测试  --- production  /  dev
             $this->baseUrl = 'https://open-anubis.ele.me/anubis-webapi/v3/invoke';
         } else {
             $this->baseUrl = 'https://exam-anubis.ele.me/anubis-webapi/v3/invoke';

+ 1 - 1
common/components/delivery/platform/huolala/Auth.php

@@ -84,7 +84,7 @@ class Auth
      */
     public function __construct()
     {
-        $isProduction = getenv('YII_ENV') == 'dev';
+        $isProduction = getenv('YII_ENV') == 'production'; // TODO 先变更为测试  --- production  /  dev
 
         if($isProduction){
             // 货拉拉配置(需要替换为真实的appKey和appSecret)

+ 1 - 1
common/components/delivery/platform/huolala/Huolala.php

@@ -20,7 +20,7 @@ class Huolala
 
     public function __construct($accessToken='')
     {
-        if (getenv('YII_ENV') == 'dev') {
+        if (getenv('YII_ENV') == 'production') { // TODO 先变更为测试  --- production  /  dev
             $cfg = [
                 'base_url' => 'https://openapi.huolala.cn/v1',
                 'app_key' => 'gBhmCdWtX7hi7qnljduk0yK21XgQg8w3',

+ 1 - 1
common/components/delivery/platform/shansong/Auth.php

@@ -100,7 +100,7 @@ class Auth
      */
     public function __construct()
     {
-        $isProduction = getenv('YII_ENV') == 'production';
+        $isProduction = getenv('YII_ENV') == 'production'; // TODO 先变更为测试  --- production  /  dev
 
         if ($isProduction) {
             $this->baseUrl = 'https://open.ishansong.com';

+ 1 - 1
common/components/delivery/platform/shansong/Shansong.php

@@ -13,7 +13,7 @@ class Shansong
 
     public function __construct($accessToken)
     {
-        if ( getenv('YII_ENV') == 'production') {
+        if ( getenv('YII_ENV') == 'production') { // TODO 先变更为测试  --- production  /  dev
             $cfg = [
                 'base_url' => 'https://open.ishansong.com',
                 'secret' => 'mUa1uLQkybm6cGaUa4AW4krn4i5QROpD',

+ 1 - 1
common/components/delivery/platform/shunfeng/Auth.php

@@ -21,7 +21,7 @@ class Auth
      */
     public function __construct()
     {
-        $isProduction = getenv('YII_ENV') == 'dev'; // TODO 先变更为测试
+        $isProduction = getenv('YII_ENV') == 'production'; // TODO 先变更为测试  --- production  /  dev
 
         if ($isProduction) {
             $this->appKey = 1594082399;

+ 1 - 1
common/components/delivery/platform/shunfeng/Shunfeng.php

@@ -21,7 +21,7 @@ class Shunfeng
     public function __construct($accessToken = '', $shopId = 0)
     {
         // 根据环境设置基础URL
-        if (getenv('YII_ENV') == 'dev') { // TODO 先变更为测试
+        if (getenv('YII_ENV') == 'production') { // TODO 先变更为测试  --- production  /  dev
             $this->baseUrl = 'https://openic.sf-express.com/open/api/external/';
             $this->devId = 1594082399;
             $this->appSecret = '9025c4f5ad93e8e08e947f02d0cde652';