feat(byhlc112): configure resell h5

This commit is contained in:
danaisuiyuan
2026-05-29 07:31:48 +08:00
parent d6fde15dd1
commit 890e82cdd9
4 changed files with 62 additions and 9 deletions

53
docs/resell-change-byhlc112.md Executable file
View File

@@ -0,0 +1,53 @@
# 新公司宝应宏煜春商贸项目的h5端目录h5 修改任务
## **修改任务**
- **已完成**新建byhlc112分支合并czleilei240分支的最新代码到该分支并根据上述信息修改相关需要变更项使符合该新公司项目环境
## 配置项修改
1.新项目公司名称eg宝应宏煜春商贸
2.使用"宝应宏煜春商贸"的**HTML十进制实体**编码修改wa_options表中name=system_config中的value值里的title信息
3.相关配置项:
A. **寄卖商城API地址**https://admin.lehoo6.com/api
B. **寄卖商城后台地址**https://admin.lehoo6.com
C. **寄卖商城H5地址**https://lehoo6.com/
D. **云服务器寄卖商城H5目录**/www/wwwroot/lehoo6.com
E. **云服务器寄卖商城后台目录**/www/wwwroot/admin.lehoo6.com
F. **积分商城地址**https://jf.lehoo6.com
G. **云服务器积分商城目录**/www/wwwroot/jf.lehoo6.com
4. 短信服务
SMS_SIGNNAME = '宝应宏煜春商贸'
SMS_TEMPLATE = 'SMS_334545236'
SMS_KEYID = 'LTAI5t7mHU5L4ChxXQk4vw4T'
SMS_KEYSECRET = 'X9yonEufGZJXEMtFXQvY5oJQmk0yno'
5. **webman.bin相关**
sn_id: 17533260260529
APP_SECRET: ZFyTNQTWEkCBczKzyUDJWE9Ecx260529
### **寄卖商城H5**中需要修改的文件
A.修改h5/static/configs.js中如下内容
TITLE: '宝应宏煜春商贸',
BASE_URL: 'https://admin.lehoo6.com/api',
IMG_URL: 'https://admin.lehoo6.com',
H5_URL: 'https://lehoo6.com',
**sn_id**、**appStr**必须修改为webman.bin相关中的值
B. 修改h5/static/js/pages-personal-index.6f5415f9.js
第270行https://jf.lehoo6.com/pages/integral/points?username=
C. 修改h5/static/js/pages-sub-pages-webview-index.1042489b.js
第15行https://jf.lehoo6.com/?sn_id
第43行https://jf.lehoo6.com/?user_id=
### **寄卖商城后端**项目中需要修改的文件
- 修改houtai/.env环境变量配置文件中的短信信息、APP_SECRET。
- mysql数据库使用阿里云rdsrm-bp1a178eq62lxba9xbo.mysql.rds.aliyuncs.com
- rds中项目数据库名byhlc112

View File

@@ -1,12 +1,12 @@
"use strict"
const configs = {
TITLE: '池州雷蕾商贸',
BASE_URL: 'https://leileiadmin.czchunfang.com/api',
IMG_URL: 'https://leileiadmin.czchunfang.com',
H5_URL: 'https://leilei.czchunfang.com/',
TITLE: '宝应宏煜春商贸',
BASE_URL: 'https://admin.lehoo6.com/api',
IMG_URL: 'https://admin.lehoo6.com',
H5_URL: 'https://lehoo6.com/',
contractPage: 10012,
// 须与积分商城 wa_options 及寄卖后台 APP_SECRET 一致;上线前从后台核对后填入,勿沿用他司示例值。
sn_id: 17533260260517,
appStr: 'ZFyTNQTWEkCBczKzyUDJWE9Ecx260517',
sn_id: 17533260260529,
appStr: 'ZFyTNQTWEkCBczKzyUDJWE9Ecx260529',
// appKey: ,
}

View File

@@ -267,7 +267,7 @@
// http://jf.suzhouyuqi.com/pages/integral/points?username=
arguments[0] = e = t.$handleEvent(e),
window.location.href =
"https://leilei-jf.czchunfang.com/pages/integral/points?username=" +
"https://jf.lehoo6.com/pages/integral/points?username=" +
t.userInfo.mobile + "#/pages/integral/points"
}
}

View File

@@ -12,7 +12,7 @@
o = {
data: function() {
return {
urlSrc: "https://leilei-jf.czchunfang.com/?sn_id=".concat(uni.$sn_id),
urlSrc: "https://jf.lehoo6.com/?sn_id=".concat(uni.$sn_id),
passback: ""
}
},
@@ -40,7 +40,7 @@
void 0 === a ?
void 0 : a.id,
e.passback && setTimeout((function() {
window.location.href = "https://leilei-jf.czchunfang.com/?user_id=" + e.passback
window.location.href = "https://jf.lehoo6.com/?user_id=" + e.passback
}), 200));
case 4:
case "end":