ayHaru 4 rokov pred
rodič
commit
c7784c6651
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      application/index/controller/Order.php

+ 1 - 1
application/index/controller/Order.php

@@ -77,7 +77,7 @@ class Order extends Controller
         $order_status = ['1' => '已存入' , '2' => '已取走'];
         // 拼装参数
         foreach($selectResult as $key=>$vo){
-            $selectResult[$key]['type'] = $order_status[$vo['type']];
+            $selectResult[$key]['order_status'] = $order_status[$vo['order_status']];
         }
         $return['total'] = $OrderModel->getAllCounts();  //总数量
         $return['rows'] = $selectResult;