|
@@ -166,7 +166,7 @@ class EmailProc {
|
|
|
$t_mail->drawedts = now();
|
|
|
self::updateMail($zoneid, $uid, $t_mail);
|
|
|
}
|
|
|
- self::logMailDrawed($rewardEmailIds, $uid); # 更新数据库中邮件的领取记录
|
|
|
+ self::logMailDrawed($rewardEmailIds, $uid, $zoneid); # 更新数据库中邮件的领取记录
|
|
|
$reward = implode(';', $arr); # 拼接下奖励字符串
|
|
|
return Resp::ok(array('err' => 0,
|
|
|
'store' => $req->userInfo->game->store,
|
|
@@ -450,11 +450,14 @@ class EmailProc {
|
|
|
* 更新邮件的领取记录
|
|
|
* @param type $ids
|
|
|
*/
|
|
|
- static function logMailDrawed($ids, $uid) {
|
|
|
- Err("这里邮件id不是唯一, 需要联合uid一起改.--晨叶反馈于2020.5.21");
|
|
|
+ static function logMailDrawed($ids, $uid, $zoneid) {
|
|
|
+// Err("这里邮件id不是唯一, 需要联合uid一起改.--晨叶反馈于2020.5.21");
|
|
|
daoInst()->update(self::MailLog_TableName)->data(array(
|
|
|
- 'drawedts' => now()
|
|
|
- ))->where('mailId')->in($ids)->andWhere('uid')->eq($uid)->exec();
|
|
|
+ 'drawedts' => now()
|
|
|
+ ))->where('mailId')->in($ids)->
|
|
|
+ andWhere('zoneid')->eq($zoneid)->
|
|
|
+ andWhere('uid_to')->eq($uid)->
|
|
|
+ exec();
|
|
|
}
|
|
|
|
|
|
/**
|