Procházet zdrojové kódy

修复支付问题

chenxiqiang před 6 roky
rodič
revize
8473c82bd9

+ 4
- 4
manage-server/app/Http/Controllers/CommonController.php Zobrazit soubor

192
                         $data["comment"] = false;
192
                         $data["comment"] = false;
193
                     }
193
                     }
194
                     // 未支付订单3小时后过期
194
                     // 未支付订单3小时后过期
195
-                    /*if($order->status = 1) {
195
+                    if($order->status = 0) {
196
                         if(Carbon::now()->subHours(3)->gt($order->created_at)) {
196
                         if(Carbon::now()->subHours(3)->gt($order->created_at)) {
197
                             continue;
197
                             continue;
198
                         }
198
                         }
199
-                    }*/
199
+                    }
200
                     array_push($orders, $data);
200
                     array_push($orders, $data);
201
                 }
201
                 }
202
             }
202
             }
216
                     $data["comment"] = false;
216
                     $data["comment"] = false;
217
                 }
217
                 }
218
                 // 未支付订单3小时后过期
218
                 // 未支付订单3小时后过期
219
-                /*if($order->status = 1) {
219
+                if($order->status = 0) {
220
                     if(Carbon::now()->subHours(3)->gt($order->created_at)) {
220
                     if(Carbon::now()->subHours(3)->gt($order->created_at)) {
221
                         continue;
221
                         continue;
222
                     }
222
                     }
223
-                }*/
223
+                }
224
                 array_push($orders, $data);
224
                 array_push($orders, $data);
225
             }
225
             }
226
             return Response()->json([
226
             return Response()->json([

Loading…
Zrušit
Uložit