shish 6 лет назад
Родитель
Сommit
bcb10a7d0e
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      vendor/dada/client/dadaRequestClient.php
  2. 2 2
      vendor/dada/config/config.php

+ 1 - 0
vendor/dada/client/dadaRequestClient.php

@@ -133,6 +133,7 @@ class DadaRequestClient{
             $resp->setStatus($data['status']);
             $resp->setMsg($data['msg']);
             $resp->setCode($data['code']);
+	        $data['result'] = isset($data['result']) ? $data['result'] : '';
             $resp->setResult($data['result']);
         }
         return $resp;

+ 2 - 2
vendor/dada/config/config.php

@@ -5,12 +5,12 @@ class Config{
     /**
      * 达达开发者app_key
      */
-    public $app_key = getenv('DADA_APP_KEY');
+    public $app_key = 'dadaf2279d901a5ba40';
 
     /**
      * 达达开发者app_secret
      */
-    public $app_secret = getenv('DADA_APP_SECRET');
+    public $app_secret = '828a03677a1c00a3a5b3c59209c4433d';
 
     /**
      * api版本