1
This commit is contained in:
parent
3b08cae12e
commit
6fc365eadc
@ -664,6 +664,7 @@ EOD;
|
||||
'pre_send' => 1
|
||||
)
|
||||
);
|
||||
$this->sendRewardMail($row['account_id'], $row['return_num']);
|
||||
SqlHelper::update(
|
||||
$gameDbConn,
|
||||
't_test_reward070901',
|
||||
@ -679,4 +680,40 @@ EOD;
|
||||
echo 'ok';
|
||||
}
|
||||
|
||||
private function sendRewardMail($to, $itemNum)
|
||||
{
|
||||
$unikey = 'reward:070901:' . $to;
|
||||
SqlHelper::upsert
|
||||
(myself()->_getMailMysql(),
|
||||
't_sys_mail',
|
||||
array(
|
||||
'unikey' => $unikey
|
||||
),
|
||||
array(
|
||||
),
|
||||
array(
|
||||
'unikey' => $unikey,
|
||||
'subject' => 'reward',
|
||||
'content' => 'reward',
|
||||
'recipients' => json_encode(array(
|
||||
$to
|
||||
)),
|
||||
'attachments' => json_encode(array(
|
||||
array(
|
||||
'itemid' => 900006,
|
||||
'itemnum' => intval($itemNum),
|
||||
)
|
||||
)),
|
||||
'tag1' => 1,
|
||||
'tag2' => 2,
|
||||
'sendtime' => myself()->_getNowTime(),
|
||||
'expiretime' => myself()->_getNowTime() + 3600 * 24 * 365 * 20,
|
||||
'user_reg_start_time' => 0,
|
||||
'user_reg_end_time' => myself()->_getNowTime() + 3600 * 24 * 365 * 10,
|
||||
'createtime' => myself()->_getNowTime(),
|
||||
'modifytime' => myself()->_getNowTime()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user