fix:圣诞活动修改异步按钮逻辑

This commit is contained in:
yushunrui 2023-12-25 19:30:55 +08:00 committed by dy
parent f1a4daece3
commit 4690254453
5 changed files with 3 additions and 5 deletions

View File

@ -43,7 +43,7 @@ export default async function (call: ApiCall<ReqSyncBtn, ResSyncBtn>) {
data[key] = {active: false}; data[key] = {active: false};
change[key] = data[key]; change[key] = data[key];
let _hdList = await HuoDongFun.gethdList(call, 8) let _hdList = await HuoDongFun.gethdList(call, 8)
if (_hdList) { if (_hdList.length > 0) {
// 无此活动 // 无此活动
data[key] = {active: true}; data[key] = {active: true};
change[key] = data[key]; change[key] = data[key];

View File

@ -27,7 +27,6 @@ export default async function (call: ApiCall<ReqLiBao, ResLiBao>) {
// 判断是否选择奖励了 // 判断是否选择奖励了
return call.error('', { code: -3, message: globalThis.lng.yangchengmubiao_2 }) return call.error('', { code: -3, message: globalThis.lng.yangchengmubiao_2 })
} }
let _prize: atn[] = _con.basep let _prize: atn[] = _con.basep
for (let key in _select) { for (let key in _select) {

View File

@ -19,7 +19,7 @@ export default async function (call: ApiCall<ReqQianDao, ResQianDao>) {
_mydata.qiandao.push(i) _mydata.qiandao.push(i)
_prize = _prize.concat(_con[i]) _prize = _prize.concat(_con[i])
} }
if (!_prize){ if (_prize.length <= 0){
// 没有奖励可以领取 // 没有奖励可以领取
return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 }) return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 })
} }

View File

@ -30,7 +30,7 @@ export default async function (call: ApiCall<ReqZhanLingRec, ResZhanLingRec>) {
_mydata.gj.push(index) _mydata.gj.push(index)
} }
if (!_prize) { if (_prize.length <= 0) {
// 没有奖励可以领取 // 没有奖励可以领取
return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 }) return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 })
} }

View File

@ -54,7 +54,6 @@ export class HuoDongFun {
if (htype != 0) _where["htype"] = htype if (htype != 0) _where["htype"] = htype
let _res = await this.catAllHD(_where) let _res = await this.catAllHD(_where)
let result = [] let result = []
for (let index = 0; index < _res.length; index++) { for (let index = 0; index < _res.length; index++) {
const element = _res[index]; const element = _res[index];