Kirin vor 2 Jahren
Ursprung
Commit
89658d52a4
1 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  1. 5 2
      app/services/system/config/SystemConfigServices.php

+ 5 - 2
app/services/system/config/SystemConfigServices.php

@@ -1990,12 +1990,15 @@ WSS;
         $build->url('setting/config/save_basics');
 
         $data = $this->getConfigAllField([
-            'wechat_app_appid', 'wechat_app_appsecret'
+            'wechat_app_appid', 'wechat_app_appsecret', 'app_version', 'app_apk'
         ]);
         $open = [];
-        foreach (['wechat_app_appid', 'wechat_app_appsecret'] as $key) {
+        foreach (['wechat_app_appid', 'wechat_app_appsecret', 'app_version'] as $key) {
             $open[] = Build::input($key, $data[$key]['info'], $data[$key]['value'])->info($data[$key]['desc'])->type($data[$key]['type']);
         }
+        $open[] = Build::uploadImage('app_apk', $data['app_apk']['info'], $data['app_apk']['value'])
+            ->url('/file/upload/0?type=1')->format(config('upload.fileExt'))->headers(['Authori-zation' => app()->request->header('Authori-zation')])
+            ->type('file')->icon('md-add')->info($data['app_apk']['desc']);
         $build->rule([
             Build::card('微信开放平台(微信登录、支付都需要开通此配置)')->components($open),
         ]);