优化代码,增加邀请码配置,修改极验弹窗模式

dependabot/npm_and_yarn/fir_admin/minimatch-3.1.2
isummer 2 years ago
parent debe95791e
commit 9e2f40383a
  1. BIN
      fir_client/src/assets/github.png
  2. BIN
      fir_client/src/assets/wxchat.jpg
  3. 12
      fir_client/src/components/index/FirContact.vue
  4. 4
      fir_client/src/components/index/FirIndexBody.vue
  5. 8
      fir_client/src/components/index/FirIndexTem.vue
  6. 16
      fir_client/src/components/index/FirNews.vue
  7. 6
      fir_client/src/utils/base/utils.js
  8. 4
      fir_client/src/utils/index.js
  9. 4
      fir_ser/api/views/login.py
  10. 4
      fir_ser/common/core/sysconfig.py
  11. 2
      fir_ser/config.py

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

@ -15,9 +15,13 @@
<el-divider direction="vertical"/>
<div class="item"><p style="margin-bottom: 16px">应用举报</p>
</div>
<p><b>flyapps@126.com</b></p>
<el-tooltip content="拿出手机扫描添加微信" style="margin-top: 33px">
<el-image :lazy="true" :src="require('@/assets/wxchat.jpg')" alt="扫描添加微信" style="width: 160px">
<div>
<el-link :underline="false" href="https://github.com/nineaiyu/FlyApps"><p><b>FlyApps</b></p></el-link>
</div>
<el-divider/>
<el-tooltip content="拿出手机扫一扫" style="margin-top: 33px">
<el-image :lazy="true" :src="require('@/assets/github.png')" alt="https://github.com/nineaiyu/FlyApps"
style="width: 160px">
</el-image>
</el-tooltip>
@ -44,7 +48,7 @@ export default {
.content {
width: 942px;
margin: 80px auto 160px;
margin: 10px auto 160px;
text-align: center;
}

@ -114,12 +114,12 @@ export default {
{
logo: require("@/assets/imgs/qq.png"),
title: "核心优势3",
content: "<p>利用QQ微信等提供在线解答</p>帮助用户快速准确解决问题和故障"
content: "<p>QQ微信等提供在线解答</p>帮助用户快速准确解决问题"
},
{
logo: require("@/assets/imgs/skill.png"),
title: "核心优势4",
content: "<p>由技术支持工程师,负责问题解答</p>需求受理及故障受理"
content: "<p>自定义配置,容器化部署</p>升级维护超级便捷"
}
]
}

@ -21,10 +21,10 @@
<el-link @click="$router.push({name:'FirApps'})">登录</el-link>
</el-col>
<el-col :span="8">
<el-link @click="$router.push({name:'FirRegist'})">注册</el-link>
<el-link @click="$router.push({name:'FirContact'})">联系我们</el-link>
</el-col>
<el-col :span="8">
<el-link @click="$router.push({name:'FirContact'})">联系我们</el-link>
<el-link @click="github">Github</el-link>
</el-col>
</el-row>
</el-col>
@ -65,6 +65,10 @@ export default {
background: '#e7eaf1'
},
}
}, methods: {
github() {
window.open('https://github.com/nineaiyu/FlyApps', '_blank', '');
}
}
}
</script>

@ -6,8 +6,8 @@
<p style="color:#b2b2b2">Company News</p>
</div>
<div class="nav text-center">
<a class="active" href="#">公司新闻</a>
<a href="#">行业动态</a>
<a class="active" href="#">开发历程</a>
<a href="#">发展足迹</a>
</div>
<ul class="news-container">
<li v-for="(item,index) in newsList" :key="index">
@ -40,6 +40,18 @@ export default {
show: false,
newsList: [
{
id: '008',
title: 'ios16系统',
introduce: '超级签名字支持ios16系统签名,只需要手机开启调试模式,即可安装打开',
date: '09-22',
year: '2022'
}, {
id: '007',
title: '私有下载页部署',
introduce: '支持私有下载页部署,方便快捷,稳定访问',
date: '05-18',
year: '2022'
}, {
id: '001',
title: '现有版本',
introduce: '经过好长时间的编写,平台已经支持超级签名,权限管理,自定义域名,自定义存储',

@ -41,13 +41,13 @@ export function geetestbase(func, self, uid, params, callback, errback, readybac
challenge: data.challenge,
new_captcha: data.new_captcha, // 用于宕机时表示是新验证码的宕机
offline: !data.success, // 表示用户后台检测极验服务器是否宕机,一般不需要关注
product: "float", // 产品形式,包括:float,popup
product: "bind", // 产品形式,包括:float,popup
width: "100%"
}, (captchaObj) => {
self.$refs.captcha.innerHTML = '';
captchaObj.appendTo("#captcha");
// captchaObj.appendTo("#captcha");
captchaObj.onReady(() => {
readyback()
readyback(captchaObj)
}).onSuccess(() => {
params.geetest = captchaObj.getValidate();
callback(params);

@ -356,8 +356,8 @@ export function geetest(self, uid, params, callback, http_func = loginFun) {
message: res.msg,
type: 'error'
});
// eslint-disable-next-line no-unused-vars
}, _ => {
}, captchaObj => {
captchaObj.verify()
loading.close()
})
}

@ -576,9 +576,7 @@ class AuthorizationView(APIView):
ext = request.data.get("ext", None)
register_type = get_register_type()
if ext and register_type.get('code', None) and ext.get('icode', None):
if ext.get('icode') == '689888666':
pass
else:
if ext.get('icode') not in Config.INVITECODE:
res.code = 1008
res.msg = "邀请码已失效"
return Response(res.dict)

@ -273,6 +273,10 @@ class AuthConfCache(ConfigCacheBase):
def REPORT(self):
return super().get_value('REPORT', AUTHCONF.REPORT)
@property
def INVITECODE(self):
return super().get_value('INVITECODE', AUTHCONF.INVITECODE)
class GeeTestConfCache(ConfigCacheBase):
def __init__(self, *args, **kwargs):

@ -105,6 +105,8 @@ class THIRDLOGINCONF(object):
class AUTHCONF(object):
# 邀请码
INVITECODE = ['yugechaoshen666']
# 注册方式,如果启用sms或者email 需要配置 THIRD_PART_CONFIG_KEY_INFO.sender 信息
REGISTER = {
"enable": True,

Loading…
Cancel
Save