rabin 2 anni fa
parent
commit
d57c731a41
2 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 1 0
      config/wechat.php
  2. 4 0
      src/Code.php

+ 1 - 0
config/wechat.php

@@ -159,6 +159,7 @@ $config['code'] = array
 		'page' => 'path',
 		'width' => 'width',
 		'is_hyaline' => 'is_hyaline',
+		'env_version' => 'env_version',
 	),
 	//针对一些返回的名称,做转换
 	'response' => array

+ 4 - 0
src/Code.php

@@ -19,6 +19,7 @@ class Code
         $filename = Dever::input('filename');
         $param['width'] = Dever::input('width', 200);
         $param['is_hyaline'] = true;
+        $param['env_version'] = 'release';
         $update = Dever::input('update', 2);
 
         if ($send) {
@@ -34,6 +35,9 @@ class Code
             if (isset($send['width'])) {
                 $param['width'] = $send['width'];
             }
+            if (isset($send['env'])) {
+                $param['env_version'] = $send['env'];
+            }
             if (isset($send['filename'])) {
                 $filename = $send['filename'];
             }