Authored by 李奇

容错

@@ -244,9 +244,11 @@ class ActWheelSurfModel extends global.yoho.BaseModel { @@ -244,9 +244,11 @@ class ActWheelSurfModel extends global.yoho.BaseModel {
244 } 244 }
245 }); 245 });
246 246
247 - sendMessage(0, {}, {succeedTimes: sendResult.data && sendResult.data.amount || 0}, 0); 247 + sendResult = sendResult || {};
  248 + sendResult.data = sendResult.data || {};
  249 + sendMessage(0, {}, {succeedTimes: sendResult.data.amount || 0}, 0);
248 250
249 - if (sendResult && sendResult.code === 200) { 251 + if (sendResult.code === 200) {
250 if (!sendResult.data.amount) { 252 if (!sendResult.data.amount) {
251 sendResult.code = 201; // 重复领取 253 sendResult.code = 201; // 重复领取
252 } else { 254 } else {