|
@@ -1867,13 +1867,13 @@ class OrdersController extends Controller
|
|
|
}
|
|
|
|
|
|
private function exchangeUpdateAndCreated($order_id){
|
|
|
- /*try{
|
|
|
+ try{
|
|
|
$info = DB::table('orders')->where('id',$order_id)->select('created_at','updated_at')->first();
|
|
|
DB::table('orders')->where('id',$order_id)
|
|
|
->update([
|
|
|
'created_at'=>$info->updated_at,
|
|
|
'updated_at'=>$info->created_at
|
|
|
]);
|
|
|
- }catch (\Exception $e){}*/
|
|
|
+ }catch (\Exception $e){}
|
|
|
}
|
|
|
}
|