...
|
...
|
@@ -257,21 +257,25 @@ class OrdersController extends WebAction |
|
|
|
|
|
do {
|
|
|
/* 判断是不是AJAX请求 */
|
|
|
if (!$this->isAjax()) {
|
|
|
break;
|
|
|
}
|
|
|
// if (!$this->isAjax()) {
|
|
|
// break;
|
|
|
// }
|
|
|
//获取相关参数
|
|
|
$order_code = $this->get('orderCode', ''); //订单号
|
|
|
$address_id = $this->get('addressId', ''); //地址id
|
|
|
$user_name = $this->get('user_name', ''); //收货人
|
|
|
$area_code = $this->get('area_code', ''); //区号
|
|
|
$address = $this->get('address', ''); //地址
|
|
|
$mobile = $this->get('mobile', ''); //手机号码
|
|
|
$phone = $this->get('phone', ''); //固定电话
|
|
|
if (!$order_code || !$address_id) {
|
|
|
$result = array('code' => 400, 'message' => '缺失必填项', 'data' => '');
|
|
|
break;
|
|
|
}
|
|
|
// $order_code = $this->get('orderCode', ''); //订单号
|
|
|
// $user_name = $this->get('user_name', ''); //收货人
|
|
|
// $area_code = $this->get('area_code', ''); //区号
|
|
|
// $address = $this->get('address', ''); //地址
|
|
|
// $mobile = $this->get('mobile', ''); //手机号码
|
|
|
// $phone = $this->get('phone', ''); //固定电话
|
|
|
$order_code = 1615400071; //订单号
|
|
|
$user_name = '接口测试'; //收货人
|
|
|
$area_code = 321023; //区号
|
|
|
$address = '测试地址'; //地址
|
|
|
$mobile = 18021408798; //手机号码
|
|
|
// if (!$order_code || !$address_id) {
|
|
|
// $result = array('code' => 400, 'message' => '缺失必填项', 'data' => '');
|
|
|
// break;
|
|
|
// }
|
|
|
$result = OrderData::updateDeliveryAddress($order_code, $address_id, $user_name, $area_code, $address, $mobile, $phone);
|
|
|
if (!isset($result['code'])) {
|
|
|
break;
|
...
|
...
|
|