commit
fb459ece4d
@ -136,10 +136,10 @@ async def registerUser(ns):
|
|||||||
if not ns.get('username'):
|
if not ns.get('username'):
|
||||||
ns['username'] = ns['mobile']
|
ns['username'] = ns['mobile']
|
||||||
|
|
||||||
if ns.get('password'):
|
# if ns.get('password'):
|
||||||
# 至少8位,包含大小写字母、特殊字符、数字
|
# # 至少8位,包含大小写字母、特殊字符、数字
|
||||||
if len(ns.get('password')) < 8 or not re.search(r'[a-zA-Z]', ns.get('password')) or not re.search(r'[0-9]', ns.get('password')):
|
# if len(ns.get('password')) < 8 or not re.search(r'[a-zA-Z]', ns.get('password')) or not re.search(r'[0-9]', ns.get('password')):
|
||||||
return {'status': False, 'msg': '密码至少8位,包含大小写字母、特殊字符、数字'}
|
# return {'status': False, 'msg': '密码至少8位,包含大小写字母、特殊字符、数字'}
|
||||||
|
|
||||||
if not ns.get('codeid'):
|
if not ns.get('codeid'):
|
||||||
return {'status': False, 'msg': '验证码ID不能为空'}
|
return {'status': False, 'msg': '验证码ID不能为空'}
|
||||||
|
|||||||
@ -108,9 +108,9 @@ async def get_resource_expire_time(ns={}):
|
|||||||
'data': data,
|
'data': data,
|
||||||
# 分页
|
# 分页
|
||||||
'pagination': {
|
'pagination': {
|
||||||
'total': baidu_resource_data['data'].get('totalCount'),
|
'total': baidu_resource_data['data'].get('totalCount') if baidu_resource_data.get('data') else 0,
|
||||||
'page_size': baidu_resource_data['data'].get('pageSize'),
|
'page_size': baidu_resource_data['data'].get('pageSize') if baidu_resource_data.get('data') else 10,
|
||||||
'current_page': baidu_resource_data['data'].get('pageNo')
|
'current_page': baidu_resource_data['data'].get('pageNo') if baidu_resource_data.get('data') else 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,10 @@
|
|||||||
<a>基础云</a>
|
<a>基础云</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="nav-hover" :class="{ active: isActiveTokenMarket }" @click="handleModelSquareClick">token市集</p>
|
<p class="nav-hover" :class="{ active: isActiveTokenMarket }" @click="handleModelSquareClick">token市集</p>
|
||||||
|
<!-- 训推平台 -->
|
||||||
|
<p class="nav-hover" @click="goTrainPlatform">训推平台</p>
|
||||||
|
<!-- 智能体商店 -->
|
||||||
|
<p class="nav-hover" @click="goAgentStore">智能体商店</p>
|
||||||
<p class="nav-hover" @click="goYuanjing">元境</p>
|
<p class="nav-hover" @click="goYuanjing">元境</p>
|
||||||
<!-- 供需广场 -->
|
<!-- 供需广场 -->
|
||||||
<p :class="{ active: $route.path.includes('/supply') }">
|
<p :class="{ active: $route.path.includes('/supply') }">
|
||||||
@ -406,6 +410,16 @@ export default Vue.extend({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 跳转训推平台
|
||||||
|
goTrainPlatform() {
|
||||||
|
window.open('http://101.200.145.167:8923/', '_blank')
|
||||||
|
},
|
||||||
|
|
||||||
|
// 跳转智能体商店
|
||||||
|
goAgentStore() {
|
||||||
|
window.open('http://101.200.145.167:8923/compute-apps', '_blank')
|
||||||
|
},
|
||||||
|
|
||||||
// 跳转元境
|
// 跳转元境
|
||||||
async goYuanjing() {
|
async goYuanjing() {
|
||||||
const yuanJingBaseUrl = window.location.origin === 'https://dev.opencomputing.cn'
|
const yuanJingBaseUrl = window.location.origin === 'https://dev.opencomputing.cn'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user