|
@@ -165,6 +165,11 @@ class Lepao {
|
|
|
const { data } = ossRes
|
|
const { data } = ossRes
|
|
|
this.logger.info(`${account}上传OSS记录返回结果: ${JSON.stringify(data)}`)
|
|
this.logger.info(`${account}上传OSS记录返回结果: ${JSON.stringify(data)}`)
|
|
|
if (!data || data.code !== 200 || !data.oss_path || !data.point_data) {
|
|
if (!data || data.code !== 200 || !data.oss_path || !data.point_data) {
|
|
|
|
|
+ if(data.code == -200) {
|
|
|
|
|
+ this.logger.info(`${account}分配打卡点数量不足,重新执行乐跑流程`)
|
|
|
|
|
+ return this.beginLepao(uuid, account, token, uid, school_id, state)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
throw new Error('请检查登录是否过期,并尝试更新乐跑登录状态')
|
|
throw new Error('请检查登录是否过期,并尝试更新乐跑登录状态')
|
|
|
}
|
|
}
|
|
|
oss_path = data.oss_path
|
|
oss_path = data.oss_path
|