feat: 新增平台客服配置及弹窗组件
- 新增客服电话、服务时间、企业微信客服配置项 - 新增客服弹窗组件支持微信在线客服和电话拨打 - 调整核销码为6位数字,修复相关提示文本 - 优化订单服务项目展示逻辑 - 完善抢单大厅加载动画和列表样式
这个提交包含在:
@@ -15,7 +15,7 @@ LOCAL_SQL_PATH = r'd:\Projects\phpstudy_pro\WWW\yjyf\db\local_yjyf_deploy.sql'
|
||||
LOCAL_TAR_PATH = r'd:\Projects\phpstudy_pro\WWW\yjyf\server_deploy.tar.gz'
|
||||
|
||||
print("==================================================")
|
||||
print("=== 开始自动化重新部署到测试服务器 ===")
|
||||
print("=== 开始自动化重新部署最新代码与数据库到测试服务器 ===")
|
||||
print("==================================================")
|
||||
|
||||
# 1. 本地数据库导出
|
||||
@@ -174,6 +174,7 @@ run_ssh(f"chmod -R 755 {REMOTE_SITE_DIR}")
|
||||
print(" 重载 PHP-FPM 服务...")
|
||||
out_fpm, _, _ = run_ssh("/etc/init.d/php-fpm-85 reload")
|
||||
print(f" PHP-FPM 重载状态: {out_fpm.strip()}")
|
||||
time.sleep(1)
|
||||
|
||||
# 7. 部署后验证与质检
|
||||
print("\n[步骤 7/7] 执行部署后全链路验证...")
|
||||
@@ -183,6 +184,10 @@ out_tb, _, _ = run_ssh("mysql -uyjyf -pyjyf yjyf -e 'SHOW TABLES;'")
|
||||
remote_tables = [l.strip() for l in out_tb.strip().splitlines() if l.strip() and l.strip() != 'Tables_in_yjyf']
|
||||
print(f" 远程 yjyf 数据库表数量: {len(remote_tables)}")
|
||||
|
||||
# 验证 pricing_config 字段是否存在
|
||||
out_col, _, _ = run_ssh("mysql -uyjyf -pyjyf yjyf -e \"SHOW COLUMNS FROM fa_service LIKE 'pricing_config';\"")
|
||||
print(f" fa_service.pricing_config 字段验证:\n{out_col.strip()}")
|
||||
|
||||
check_sql = (
|
||||
"SELECT 'fa_user' AS tb, COUNT(*) AS cnt FROM fa_user UNION ALL "
|
||||
"SELECT 'fa_master', COUNT(*) FROM fa_master UNION ALL "
|
||||
@@ -200,18 +205,21 @@ print("\n 测试 HTTP 访问响应:")
|
||||
out_http1, _, _ = run_ssh("curl -k -s -o /dev/null -w '%{http_code}' https://yjyf.gzyakj.com.cn/")
|
||||
print(f" - 首页 (https://yjyf.gzyakj.com.cn/): HTTP {out_http1.strip()}")
|
||||
|
||||
out_http2, _, _ = run_ssh("curl -k -s -o /dev/null -w '%{http_code}' https://yjyf.gzyakj.com.cn/s.php")
|
||||
print(f" - 后台管理入口 (https://yjyf.gzyakj.com.cn/s.php): HTTP {out_http2.strip()}")
|
||||
out_http2, _, _ = run_ssh("curl -k -s -o /dev/null -w '%{http_code}' https://yjyf.gzyakj.com.cn/s.php/index/login")
|
||||
print(f" - 后台登录页面 (https://yjyf.gzyakj.com.cn/s.php/index/login): HTTP {out_http2.strip()}")
|
||||
|
||||
out_api, _, _ = run_ssh("curl -k -s https://yjyf.gzyakj.com.cn/api/common/init")
|
||||
print(f" - 公共初始化接口 (/api/common/init): {out_api[:120]}...")
|
||||
out_cats, _, _ = run_ssh("curl -k -s https://yjyf.gzyakj.com.cn/api/home/cats")
|
||||
print(f" - 分类接口 (/api/home/cats): {out_cats[:120]}...")
|
||||
|
||||
out_config, _, _ = run_ssh("curl -k -s https://yjyf.gzyakj.com.cn/api/index/index")
|
||||
print(f" - 首页数据接口 (/api/index/index): {out_config[:120]}...")
|
||||
out_home, _, _ = run_ssh("curl -k -s https://yjyf.gzyakj.com.cn/api/home/index")
|
||||
print(f" - 首页接口 (/api/home/index): {out_home[:120]}...")
|
||||
|
||||
out_dicts, _, _ = run_ssh("curl -k -s https://yjyf.gzyakj.com.cn/api/common/dicts")
|
||||
print(f" - 字典接口 (/api/common/dicts): {out_dicts[:120]}...")
|
||||
|
||||
# 7.3 验证其他站点未受影响
|
||||
print("\n 验证其他站点未受影响:")
|
||||
other_sites = ['fenleixinxi.gzyakj.com.cn', 'huaqiapp.gzyakj.com.cn']
|
||||
other_sites = ['fenleixinxi.gzyakj.com.cn', 'huaqiapp.gzyakj.com.cn', 'renqing', 'rqzb.gyscwl.com']
|
||||
for s in other_sites:
|
||||
out_s, _, _ = run_ssh(f"test -d /www/wwwroot/{s} && echo 'EXISTS' || echo 'NOT_FOUND'")
|
||||
print(f" - 目录 /www/wwwroot/{s}: {out_s.strip()}")
|
||||
|
||||
在新工单中引用
屏蔽一个用户