[京喜农场] 助力兼容返回值 // ret=1012 has complete 已完成
This commit is contained in:
@@ -568,11 +568,12 @@ function helpShareCode(smp, active, joinnum) {
|
||||
const {ret, retmsg = ''} = JSON.parse(res);
|
||||
$.log(`助力结果:ret=${ret} retmsg="${retmsg ? retmsg : 'OK'}"`);
|
||||
// ret=0 助力成功
|
||||
// ret=1021 cannot help self 不能助力自己
|
||||
// ret=1011 active 不同
|
||||
// ret=1012 has complete 已完成
|
||||
// ret=1009 retmsg="today has help p2p" 今天已助力过
|
||||
// ret=1021 cannot help self 不能助力自己
|
||||
// ret=1032 retmsg="err operate env" 被助力者为 APP 专属种子,当前助力账号未配置 TOKEN
|
||||
if (ret === 0 || ret === 1009 || ret === 1011 || ret === 1021 || ret === 1032) {
|
||||
if (ret === 0 || ret === 1009 || ret === 1011 || ret === 1012 || ret === 1021 || ret === 1032) {
|
||||
resolve(true);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user