|
@@ -34,6 +34,22 @@ class PrivateMail extends Model
|
|
|
$redis->redis()->setnx($order_sn, 1);
|
|
$redis->redis()->setnx($order_sn, 1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if($order_sn){
|
|
|
|
|
+ //免费币不需要邮件领取
|
|
|
|
|
+ $OrderWithDraw = DB::table(TableName::QPAccountsDB() . 'OrderWithDraw')
|
|
|
|
|
+ ->where('OrderID', $order_sn)
|
|
|
|
|
+ ->first();
|
|
|
|
|
+ if ($OrderWithDraw && $OrderWithDraw->score_type == 1) {
|
|
|
|
|
+ $amount = 0;
|
|
|
|
|
+ $bonus = '';
|
|
|
|
|
+ $params['amount'] = 0;
|
|
|
|
|
+ $params['bonus'] = '';
|
|
|
|
|
+ Log::info("private mail order_sn amount", $params);
|
|
|
|
|
+ DB::table('QPTreasureDB.dbo.GameScoreInfo')->where('UserID', $UserID)->increment('InsureScore',$amount);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$mailData = [
|
|
$mailData = [
|
|
|
'MailType' => $MailType,
|
|
'MailType' => $MailType,
|
|
|
'MailStatus' => 1,
|
|
'MailStatus' => 1,
|