Explorar el Código

修复支付问题

chenxiqiang hace 7 años
padre
commit
b2bcac9bef
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      manage-server/app/Http/Controllers/CommonController.php

+ 2
- 2
manage-server/app/Http/Controllers/CommonController.php Ver fichero

192
                         $data["comment"] = false;
192
                         $data["comment"] = false;
193
                     }
193
                     }
194
                     // 未支付订单3小时后过期
194
                     // 未支付订单3小时后过期
195
-                    if($order->status = 0) {
195
+                    if($order->status === 0) {
196
                         if(Carbon::now()->subDay(1)->gt($order->created_at)) {
196
                         if(Carbon::now()->subDay(1)->gt($order->created_at)) {
197
                             continue;
197
                             continue;
198
                         }
198
                         }
216
                     $data["comment"] = false;
216
                     $data["comment"] = false;
217
                 }
217
                 }
218
                 // 未支付订单3小时后过期
218
                 // 未支付订单3小时后过期
219
-                if($order->status = 0) {
219
+                if($order->status === 0) {
220
                     if(Carbon::now()->subDay(1)->gt($order->created_at)) {
220
                     if(Carbon::now()->subDay(1)->gt($order->created_at)) {
221
                         continue;
221
                         continue;
222
                     }
222
                     }

Loading…
Cancelar
Guardar