diff --git a/src/api_s2c/email/ApiAllReceive.ts b/src/api_s2c/email/ApiAllReceive.ts index 571b4b4..829f9ac 100644 --- a/src/api_s2c/email/ApiAllReceive.ts +++ b/src/api_s2c/email/ApiAllReceive.ts @@ -6,7 +6,7 @@ import {ReqAllReceive, ResAllReceive} from "../../shared/protocols/email/PtlAllR export default async function (call: ApiCall) { // 筛选出有奖励并且未领取的邮件 let emailList = (await EmailFun.getAllEmail(call.uid, false)).filter(email => ( - email.prizeData.prize.length > 0 && !email.prizeData?.isGet + email.prizeData?.prize.length > 0 && !email.prizeData?.isGet )); if (emailList.length < 1) return call.error(globalThis.lng.email_1);