feat: 上线调整

This commit is contained in:
liulujian 2026-05-07 13:44:20 +08:00
parent 07356ee192
commit 73db251acb
8 changed files with 78 additions and 15 deletions

View File

@ -33,7 +33,8 @@
"mcp__code-review-graph__list_graph_stats_tool",
"mcp__code-review-graph__list_communities_tool",
"mcp__code-review-graph__build_or_update_graph_tool",
"mcp__code-review-graph__semantic_search_nodes_tool"
"mcp__code-review-graph__semantic_search_nodes_tool",
"mcp__code-review-graph__query_graph_tool"
]
},
"enableAllProjectMcpServers": true,

View File

@ -6,6 +6,7 @@ set -e
# 用法: bash devops/pack-image.sh <txw-web|txw-all> [VERSION] [SERVER_USER] [SERVER_HOST]
# 示例:
# bash ./devops/pack-image.sh txw-web 1.0.0 root 192.168.1.100
# ./devops/pack-image.sh txw-all 1.0.0
# bash devops/pack-image.sh txw-all
# ============================================================

View File

@ -63,6 +63,9 @@ http {
application/x-javascript text/xml application/xml
application/xml+rss text/javascript image/svg+xml;
if ($request_method = OPTIONS) {
return 403;
}
# 健康检查
location /healthcheck {
access_log off;
@ -81,9 +84,54 @@ http {
proxy_pass http://txw-gateway:9300;
}
# Nacos 代理
location ~ ^/nacos(/.*)?$ {
proxy_pass http://txw-nacos:8848$1;
location ~ ^/nacos(/.*)$ {
include proxy-common.conf;
proxy_pass http://txw-nacos:8080$1;
}
location ^~ /admin/ {
proxy_pass http://172.21.79.119:18777/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_cache off;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 600s;
}
location ^~ /web/ {
proxy_pass http://172.21.79.119:18778/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_cache off;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 600s;
}
location ^~ /h5/ {
proxy_pass http://172.21.79.119:18779/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_cache off;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 600s;
}
# 百度验证

View File

@ -62,12 +62,12 @@
<!-- <t-form-item label="验证码" name="sms">
<t-input v-model="form.sms" placeholder="请输入手机号码" />
</t-form-item> -->
<t-form-item label="验证码" class="verification-code" name="sms">
<!-- <t-form-item label="验证码" class="verification-code" name="sms">
<t-input v-model="form.sms" size="large" placeholder="请输入验证码" key="verifyCode" />
<t-button :disabled="countDown > 0" @click="handleCounter">
{{ countDown === 0 ? '发送验证码' : `${countDown}秒后可重发` }}
</t-button>
</t-form-item>
</t-form-item> -->
</t-form>
</t-dialog>
</main>
@ -104,11 +104,11 @@ export default {
delVisible:false,
form:{
sjhm:'',
sms:''
// sms:''
},
rules: {
sjhm: [{ required: true, message: '手机号码必填', type: 'error' }],
sms: [{ required: true, message: '验证码必填', type: 'error' }],
// sms: [{ required: true, message: '', type: 'error' }],
},
countDown: 0,
captchaVerification:'',
@ -183,7 +183,8 @@ export default {
// this.$refs.form.validate()
const result = this.$refs.form.validate();
console.log('result',result);
if(this.form.sjhm&&this.form.sms){
// if(this.form.sjhm&&this.form.sms){
if(this.form.sjhm){
this.didBindPhone();
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
INSERT INTO `txw_mhzc_hydtb` (`uuid`, `bt`, `tp`, `nr`, `fbsj`, `lx`, `lx_mc`, `lxr`, `yy_lj`) VALUES
('hydt_007', '企业的减碳努力能否获得市场回报?宝山集聚“碳数据工匠”赋能细分赛道', NULL, '走进宝武碳中和产业园大屏上实时跳动着碳排放监测数据。这些数据不仅关乎环保更关乎真金白银——2026年欧盟碳边境调节机制CBAM正式生效这意味着钢铁、铝、水泥等中国制造的产品出口时不仅要拼质量、拼价格还要拼一份精准、可信的“碳账单”。', '2026-04-09 18:36:00', 'hyzx', '行业资讯', '上观新闻', 'https://www.shobserver.cn/staticsg/res/html/web/newsDetail.html?id=1094165'),
('hydt_008', '可信碳数据体系构建迈出坚实一步2025全球数商大会区块链赋能绿色低碳场景论坛在沪成功举办', NULL, '11月26日下午2025全球数商大会区块链赋能绿色低碳场景论坛在中国金融信息中心开幕。上海市数据局党组成员、副局长翁轶丛宝山区委常委、副区长肖刚上海数据集团副总裁吕锋等出席。', '2026-04-10 08:00:00', 'hyzx', '行业资讯', '陆家嘴金融网', 'https://h.xinhuaxmt.com/vh512/share/12845400?docid=12845400&newstype=1001&d=13501f6&time=1777451942201'),
('hydt_009', '可信碳数字身份赋能循环经济新范式——可信碳・可再生资源场景发布会在宝山举办', NULL, '近日,可信碳・可再生资源场景发布会在宝山南大数智中心举行。生态环境部环境发展中心副主任张耀东,上海市数据局副局长翁轶丛,上海数据集团首席技术官苏光牛等领导出席活动。', '2026-04-16 23:02:00', 'hyzx', '行业资讯', '上海宝山公众号', 'https://mp.weixin.qq.com/s/ily7l2FvpfuzO7V2Fc9g1A');

View File

@ -309,7 +309,7 @@ public class DidController {
// vcs.add(vcsInfo);
DidExtendVcsInfo vcsInfo = DidExtendVcsInfo.builder()
.vctId("100001")
.vctVersion("v9")
.vctVersion("v1")
.issuer("did:cndid:cndid")
.build();
vcs.add(vcsInfo);

View File

@ -218,12 +218,12 @@ public class AuthServiceImpl implements AuthService {
@Override
public AuthLoginRespVO didBindPhone(@Valid DidBindPhoneReqVO reqVO) {
String sms = reqVO.getSms();
String sjhm = reqVO.getSjhm();
Boolean aBoolean = stringRedisTemplate.hasKey(formatKey(sjhm+sms));
if (GyUtils.isNull(aBoolean)||!aBoolean) {
throw exception(OAUTH2_LOGIN_SJHM_NOT_EXISTS);
}
// String sms = reqVO.getSms();
// Boolean aBoolean = stringRedisTemplate.hasKey(formatKey(sjhm+sms));
// if (GyUtils.isNull(aBoolean)||!aBoolean) {
// throw exception(OAUTH2_LOGIN_SJHM_NOT_EXISTS);
// }
String reqId =reqVO.getReqId() ;
// did用户注册
//缓存did 一次请求对应一个did