Explorar o código

exchange order time

zz %!s(int64=6) %!d(string=hai) anos
pai
achega
925548765e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Http/Controllers/Wap/Pay/OrdersController.php

+ 2 - 1
app/Http/Controllers/Wap/Pay/OrdersController.php

@@ -1869,7 +1869,8 @@ class OrdersController extends Controller
     private function exchangeUpdateAndCreated($order_id){
         try{
             $info = DB::table('orders')->where('id',$order_id)->select('created_at','updated_at')->first();
-            DB::table('orders')->update([
+            DB::table('orders')->where('id',$order_id)
+                ->update([
                 'created_at'=>$info->updated_at,
                 'updated_at'=>$info->created_at
             ]);