更新pcb后台

parent 7bd74c20
Showing with 2 additions and 0 deletions
...@@ -120,6 +120,7 @@ class WebController extends Controller ...@@ -120,6 +120,7 @@ class WebController extends Controller
} }
$purchase['shipping_time'] = $purchase['shipping_time'] > 0 ? date('Y-m-d H:i:s',$purchase['shipping_time']) : ""; $purchase['shipping_time'] = $purchase['shipping_time'] > 0 ? date('Y-m-d H:i:s',$purchase['shipping_time']) : "";
$purchase['finish_time'] = $purchase['finish_time'] > 0 ? date('Y-m-d H:i:s',$purchase['finish_time']) : ""; $purchase['finish_time'] = $purchase['finish_time'] > 0 ? date('Y-m-d H:i:s',$purchase['finish_time']) : "";
$purchase['purchase_amount'] = $purchase['purchase_amount'] > 0 ? $purchase['purchase_amount'] : "";
} }
//拼接基本信息 //拼接基本信息
$PcbPublicModel = new PcbPublicModel(); $PcbPublicModel = new PcbPublicModel();
...@@ -219,6 +220,7 @@ class WebController extends Controller ...@@ -219,6 +220,7 @@ class WebController extends Controller
if ($purchase){ if ($purchase){
$purchase = objectToArray($purchase); $purchase = objectToArray($purchase);
$purchase['shipping_time'] = $purchase['shipping_time'] > 0 ? date('Y-m-d H:i:s',$purchase['shipping_time']) : ""; $purchase['shipping_time'] = $purchase['shipping_time'] > 0 ? date('Y-m-d H:i:s',$purchase['shipping_time']) : "";
$purchase['purchase_amount'] = $purchase['purchase_amount'] > 0 ? $purchase['purchase_amount'] : "";
$purchase['order_pay_type'] = PcbOrderMap::$order_pay_type[$purchase['order_pay_type']]; $purchase['order_pay_type'] = PcbOrderMap::$order_pay_type[$purchase['order_pay_type']];
} }
//拼接订单详细信息 //拼接订单详细信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment