...
|
...
|
@@ -233,24 +233,6 @@ class OrdersController extends WebAction |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取省市区县信息列表
|
|
|
*
|
|
|
* @param int id
|
|
|
* @return json
|
|
|
*/
|
|
|
// public function getAreaListAction()
|
|
|
// {
|
|
|
// $result = array('code' => 200, 'message' => '地区信息', 'data' => array());
|
|
|
//
|
|
|
// if ($this->isAjax()) {
|
|
|
// $id = $this->get('id', 0);
|
|
|
// $result['data'] = CartModel::getAreaList($id);
|
|
|
// }
|
|
|
//
|
|
|
// $this->echoJson($result);
|
|
|
// }
|
|
|
|
|
|
/**
|
|
|
* 订单详情页地址修改
|
|
|
*/
|
|
|
public function modifyAddressAction()
|
...
|
...
|
@@ -270,19 +252,20 @@ class OrdersController extends WebAction |
|
|
$mobile = $this->get('mobile', ''); //手机号码
|
|
|
$phoneNum = $this->get('phoneNum', ''); //固定电话
|
|
|
$phoneCode = $this->get('phoneCode', ''); //电话编号
|
|
|
if(!empty($phoneNum) && !empty($phoneCode)){
|
|
|
if(!empty($phoneNum)){
|
|
|
$phone = $phoneCode.'-'.$phoneNum;
|
|
|
}
|
|
|
// $order_code = 1616956289; //订单号
|
|
|
// $order_code = 1606640307; //订单号
|
|
|
// $user_name = '接口测试'; //收货人
|
|
|
// $area_code = 321023; //区号
|
|
|
// $area_code = 320102; //区号
|
|
|
// $address = '测试地址'; //地址
|
|
|
// $mobile = 18021408798; //手机号码
|
|
|
// $phone = 05128897456;
|
|
|
if (!$order_code || !$user_name || !$area_code || !$address) {
|
|
|
$result = array('code' => 400, 'message' => '缺失必填项', 'data' => '');
|
|
|
break;
|
|
|
}
|
|
|
$result = OrderData::updateDeliveryAddress($order_code, $address_id, $user_name, $area_code, $address, $mobile, $phone);
|
|
|
$result = OrderData::updateDeliveryAddress($order_code, $user_name, $area_code, $address, $mobile, $phone);
|
|
|
if (!isset($result['code'])) {
|
|
|
break;
|
|
|
}
|
...
|
...
|
|