From a0fca119e61dad3f1055a339c827d13f40da320b Mon Sep 17 00:00:00 2001
From: evoxwht <442384644@qq.com>
Date: Thu, 20 Apr 2023 16:24:08 +0800
Subject: [PATCH 1/9] =?UTF-8?q?pc=E6=A8=A1=E7=89=88=E4=BD=BF=E7=94=A8?=
=?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98=E9=97=AE=E9=A2=98=E5=A4=84?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
crmeb/crmeb/services/app/WechatService.php | 8 +-------
template/admin/src/setting.js | 2 +-
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/crmeb/crmeb/services/app/WechatService.php b/crmeb/crmeb/services/app/WechatService.php
index 24fad4bbc..76a24c935 100644
--- a/crmeb/crmeb/services/app/WechatService.php
+++ b/crmeb/crmeb/services/app/WechatService.php
@@ -57,13 +57,7 @@ class WechatService
$appId = isset($wechat['wechat_app_appid']) ? trim($wechat['wechat_app_appid']) : '';
$appsecret = isset($wechat['wechat_app_appsecret']) ? trim($wechat['wechat_app_appsecret']) : '';
} else {
- $appId = null;
- if (request()->isPc()) {
- $appId = sys_config('wechat_open_app_id');
- }
- if (!$appId) {
- $appId = isset($wechat['wechat_appid']) ? trim($wechat['wechat_appid']) : '';
- }
+ $appId = isset($wechat['wechat_appid']) ? trim($wechat['wechat_appid']) : '';
$appsecret = isset($wechat['wechat_appsecret']) ? trim($wechat['wechat_appsecret']) : '';
}
$config = [
diff --git a/template/admin/src/setting.js b/template/admin/src/setting.js
index 84a509ef8..3b51eaa25 100644
--- a/template/admin/src/setting.js
+++ b/template/admin/src/setting.js
@@ -1,5 +1,5 @@
// 请求接口地址 如果没有配置自动获取当前网址路径
-const VUE_APP_API_URL = process.env.VUE_APP_API_URL || `${location.origin}/adminapi`;
+const VUE_APP_API_URL = `https://v5.wuht.net/adminapi`||process.env.VUE_APP_API_URL || `${location.origin}/adminapi`;
const Setting = {
// 路由前缀
From 0d1c1b61cb2598f04bf1ed5e7322f209835ca088 Mon Sep 17 00:00:00 2001
From: liaofei <136327134@qq.com>
Date: Thu, 20 Apr 2023 16:41:05 +0800
Subject: [PATCH 2/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=88=90?=
=?UTF-8?q?=E7=9A=84=E8=B7=AF=E7=94=B1=E5=90=8D=E7=A7=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
crmeb/crmeb/services/crud/stubs/route/create.stub | 2 +-
crmeb/crmeb/services/crud/stubs/route/delete.stub | 2 +-
crmeb/crmeb/services/crud/stubs/route/edit.stub | 2 +-
crmeb/crmeb/services/crud/stubs/route/index.stub | 2 +-
crmeb/crmeb/services/crud/stubs/route/save.stub | 2 +-
crmeb/crmeb/services/crud/stubs/route/update.stub | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/crmeb/crmeb/services/crud/stubs/route/create.stub b/crmeb/crmeb/services/crud/stubs/route/create.stub
index f5a6d6b51..006c0ba7f 100644
--- a/crmeb/crmeb/services/crud/stubs/route/create.stub
+++ b/crmeb/crmeb/services/crud/stubs/route/create.stub
@@ -1 +1 @@
-Route::get('{%route%}/create', 'crud.{%routePath%}{%controller%}/create')->name('{%menus%}获取创建表单接口');
+Route::get('{%route%}/create', 'crud.{%routePath%}{%controller%}/create')->option(['real_name' => '{%menus%}获取创建表单接口']);
diff --git a/crmeb/crmeb/services/crud/stubs/route/delete.stub b/crmeb/crmeb/services/crud/stubs/route/delete.stub
index 2557266fd..a38392a27 100644
--- a/crmeb/crmeb/services/crud/stubs/route/delete.stub
+++ b/crmeb/crmeb/services/crud/stubs/route/delete.stub
@@ -1 +1 @@
-Route::delete('{%route%}/:id', 'crud.{%routePath%}{%controller%}/delete')->name('{%menus%}删除数据接口');
+Route::delete('{%route%}/:id', 'crud.{%routePath%}{%controller%}/delete')->option(['real_name' => '{%menus%}删除数据接口']);
diff --git a/crmeb/crmeb/services/crud/stubs/route/edit.stub b/crmeb/crmeb/services/crud/stubs/route/edit.stub
index 65b3cb6bd..894ee7ed6 100644
--- a/crmeb/crmeb/services/crud/stubs/route/edit.stub
+++ b/crmeb/crmeb/services/crud/stubs/route/edit.stub
@@ -1 +1 @@
-Route::get('{%route%}/:id/edit', 'crud.{%routePath%}{%controller%}/edit')->name('{%menus%}获取修改表单接口');
+Route::get('{%route%}/:id/edit', 'crud.{%routePath%}{%controller%}/edit')->option(['real_name' => '{%menus%}获取修改表单接口']);
diff --git a/crmeb/crmeb/services/crud/stubs/route/index.stub b/crmeb/crmeb/services/crud/stubs/route/index.stub
index f43da710b..0b3589bc3 100644
--- a/crmeb/crmeb/services/crud/stubs/route/index.stub
+++ b/crmeb/crmeb/services/crud/stubs/route/index.stub
@@ -1 +1 @@
-Route::get('{%route%}', 'crud.{%routePath%}{%controller%}/index')->name('{%menus%}列表接口');
+Route::get('{%route%}', 'crud.{%routePath%}{%controller%}/index')->option(['real_name' => '{%menus%}列表接口']);
diff --git a/crmeb/crmeb/services/crud/stubs/route/save.stub b/crmeb/crmeb/services/crud/stubs/route/save.stub
index 10d990844..b950a91d8 100644
--- a/crmeb/crmeb/services/crud/stubs/route/save.stub
+++ b/crmeb/crmeb/services/crud/stubs/route/save.stub
@@ -1 +1 @@
-Route::post('{%route%}', 'crud.{%routePath%}{%controller%}/save')->name('{%menus%}保存数据接口');
+Route::post('{%route%}', 'crud.{%routePath%}{%controller%}/save')->option(['real_name' => '{%menus%}保存数据接口']);
diff --git a/crmeb/crmeb/services/crud/stubs/route/update.stub b/crmeb/crmeb/services/crud/stubs/route/update.stub
index 7e7578198..d982677d3 100644
--- a/crmeb/crmeb/services/crud/stubs/route/update.stub
+++ b/crmeb/crmeb/services/crud/stubs/route/update.stub
@@ -1 +1 @@
-Route::put('{%route%}/:id', 'crud.{%routePath%}{%controller%}/update')->name('{%menus%}修改数据接口');
+Route::put('{%route%}/:id', 'crud.{%routePath%}{%controller%}/update')->option(['real_name' => '{%menus%}修改数据接口']);
From 97db6107f5c496922a24d236a9f6707f5f3ddfd4 Mon Sep 17 00:00:00 2001
From: liaofei <136327134@qq.com>
Date: Thu, 20 Apr 2023 16:50:10 +0800
Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9crud=E7=94=9F=E6=88=90?=
=?UTF-8?q?=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../system/codeGeneration/components/FoundationFor.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue b/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue
index f197e748e..05cc0f296 100644
--- a/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue
+++ b/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue
@@ -4,10 +4,11 @@
crud生成说明
1、字段配置中表存在生成的字段为表内列的信息,并且主键、伪删除字段不允许设置为列,主键默认展示在列表中,伪删除字段不允许展示 2、在字段配置中新建表时,字段类型为addTimestamps会自动创建create_time、update_time字段,字段类型为:timestamp 3、在字段配置中新建表时,字段类型为addSoftDelete会字段创建delete_time字段,字段类型为:timestamp,作用是伪删除 4、在字段配置中,表单类型为frameImageOne时属于图片单选,frameImages时为图片多选 5、在字段配置中,表单类型为不生成时创建后不会生成对应的表单项 2、在字段配置中新建表时,主键不需要增加列,会在生成的时候默认自带主键id 3、在字段配置中新建表时,字段类型为addTimestamps会自动创建create_time、update_time字段,字段类型为:timestamp 4、在字段配置中新建表时,字段类型为addSoftDelete会字段创建delete_time字段,字段类型为:timestamp,作用是伪删除 5、在字段配置中,表单类型为frameImageOne时属于图片单选,frameImages时为图片多选 6、在字段配置中,表单类型为不生成时创建后不会生成对应的表单项