|
@@ -192,6 +192,13 @@ class OrderModel |
|
@@ -192,6 +192,13 @@ class OrderModel |
192
|
$detail['orderInfo']['receiver'] = $orderDetail['user_name'];
|
192
|
$detail['orderInfo']['receiver'] = $orderDetail['user_name'];
|
193
|
$detail['orderInfo']['address'] = $orderDetail['area'] . $orderDetail['address'];
|
193
|
$detail['orderInfo']['address'] = $orderDetail['area'] . $orderDetail['address'];
|
194
|
$detail['orderInfo']['phone'] = substr_replace($orderDetail['mobile'], '****', 3, 4) . (!empty($orderDetail['phone']) ? ',' . substr_replace($orderDetail['phone'], '****', 3, 5) : '');
|
194
|
$detail['orderInfo']['phone'] = substr_replace($orderDetail['mobile'], '****', 3, 4) . (!empty($orderDetail['phone']) ? ',' . substr_replace($orderDetail['phone'], '****', 3, 5) : '');
|
|
|
195
|
+ $detail['editInfo']['userName'] = $orderDetail['user_name'];//收货人
|
|
|
196
|
+ $detail['editInfo']['address'] = $orderDetail['address'];//地址
|
|
|
197
|
+ $detail['editInfo']['areaCode'] = $orderDetail['area_code'];//地址编号
|
|
|
198
|
+ $detail['editInfo']['mobile'] = $orderDetail['mobile'];//手机号码
|
|
|
199
|
+ $phone = explode('-', strtr($value['phone'], array('null' => '')));//固定电话
|
|
|
200
|
+ $detail['editInfo']['phoneNum'] = isset($phone[1]) ? $phone[0] : '';//电话区号
|
|
|
201
|
+ $detail['editInfo']['phoneCode'] =isset($phone[1]) ? $phone[1] : '';//电话号码
|
195
|
}
|
202
|
}
|
196
|
//商品信息
|
203
|
//商品信息
|
197
|
if ($orderDetail['order_goods']) {
|
204
|
if ($orderDetail['order_goods']) {
|
|
@@ -225,7 +232,8 @@ class OrderModel |
|
@@ -225,7 +232,8 @@ class OrderModel |
225
|
$detail['operation'] = self::getOrderDetailOp($orderDetail['order_code'], $orderDetail['payment'], $orderDetail['status'], $orderDetail['is_cancel'], $orderDetail['payment_status'], $orderDetail['payment_type'], $orderDetail['order_type'], $orderDetail['attribute'], $orderDetail['refund_status']); //,$orderDetail['order_type_value']
|
232
|
$detail['operation'] = self::getOrderDetailOp($orderDetail['order_code'], $orderDetail['payment'], $orderDetail['status'], $orderDetail['is_cancel'], $orderDetail['payment_status'], $orderDetail['payment_type'], $orderDetail['order_type'], $orderDetail['attribute'], $orderDetail['refund_status']); //,$orderDetail['order_type_value']
|
226
|
$detail['packages'] = CartModel::getPackageInfo($orderDetail);
|
233
|
$detail['packages'] = CartModel::getPackageInfo($orderDetail);
|
227
|
//判断是否可以修改地址
|
234
|
//判断是否可以修改地址
|
228
|
- $detail['changeable'] = $orderDetail['can_update_delivery_address'] == 'Y' ? 'true' : 'false';
|
235
|
+// $detail['changeable'] = $orderDetail['can_update_delivery_address'] == 'Y' ? 'true' : 'false';
|
|
|
236
|
+ $detail['changeable'] = 'true';
|
229
|
}
|
237
|
}
|
230
|
return $detail;
|
238
|
return $detail;
|
231
|
}
|
239
|
}
|