|
@@ -69,7 +69,7 @@ class SendOrderService
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- $info = DB::table('qapp_user_valid_send_order_id')->where('uid',$uid)
|
|
|
+ $info = DB::table('qapp_user_valid_send_order_id_v2')->where('uid',$uid)
|
|
|
->where('end_time','>',date('Y-m-d H:i:s'))
|
|
|
->where('is_valid',1)
|
|
|
->orderBy('id')->first();
|
|
@@ -84,8 +84,8 @@ class SendOrderService
|
|
|
]);*/
|
|
|
myLog('recordUserSendOrder')->info('uid:'.$uid.',send_order_id:'.$send_order_id);
|
|
|
try{
|
|
|
- $id = DB::table('qapp_user_valid_send_order_id')->max('id');
|
|
|
- DB::table('qapp_user_valid_send_order_id')->insert([
|
|
|
+ $id = DB::table('qapp_user_valid_send_order_id_v2')->max('id');
|
|
|
+ DB::table('qapp_user_valid_send_order_id_v2')->insert([
|
|
|
'id'=>$id +1,
|
|
|
'uid'=>$uid,'send_order_id'=>$send_order_id,'end_time'=>date('Y-m-d H:i:s',time()+30*86400),'is_valid'=>1,
|
|
|
'created_at'=>date('Y-m-d H:i:s'),'updated_at'=>date('Y-m-d H:i:s')
|