mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-27 21:57:48 +00:00
修改寄件
This commit is contained in:
parent
fb4622cd53
commit
2839c115f9
@ -293,6 +293,7 @@ class StoreOrder extends AuthController
|
||||
|
||||
['day_type', 0], //顺丰传 0今天,1明天,2后台
|
||||
['pickup_time', []],//开始时间 9:00,结束时间 10:00 开始时间和结束时间之间不能小于一个小时
|
||||
['service_type', ''],//快递业务类型
|
||||
]);
|
||||
if (!$id) {
|
||||
return app('json')->fail(100100);
|
||||
@ -325,8 +326,15 @@ class StoreOrder extends AuthController
|
||||
['address', ''],
|
||||
['weight', ''],
|
||||
['service_type', ''],
|
||||
['cart_ids', []],
|
||||
]);
|
||||
|
||||
foreach ($data['cart_ids'] as $cart) {
|
||||
if (!isset($cart['cart_id']) || !$cart['cart_id'] || !isset($cart['cart_num']) || !$cart['cart_num']) {
|
||||
return app('json')->fail(400159);
|
||||
}
|
||||
}
|
||||
|
||||
return app('json')->success($services->express()->getPrice($data));
|
||||
}
|
||||
|
||||
|
||||
@ -170,13 +170,13 @@ class Express extends BaseExpress
|
||||
*/
|
||||
public function getPrice(array $data)
|
||||
{
|
||||
if (!empty($data['kuaidicom'])) {
|
||||
if (empty($data['kuaidicom'])) {
|
||||
throw new ApiException('快递编码必须填写');
|
||||
}
|
||||
if (!empty($data['send_address'])) {
|
||||
if (empty($data['send_address'])) {
|
||||
throw new ApiException('寄件地址必须填写');
|
||||
}
|
||||
if (!empty($data['address'])) {
|
||||
if (empty($data['address'])) {
|
||||
throw new ApiException('收件地址必须填写');
|
||||
}
|
||||
$param = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user