|
|
@@ -62,6 +62,23 @@ class OrderService extends BaseService
|
|
|
if (empty($data['bookName'])) {
|
|
|
$data['bookName'] = $custom->name;
|
|
|
}
|
|
|
+ //如果开单没有传收花人信息,则使用订花人的信息
|
|
|
+ if (empty($data['receiveUserName'])) {
|
|
|
+ $data['receiveUserName'] = $custom->name;
|
|
|
+ }
|
|
|
+ if (empty($data['receiveMobile'])) {
|
|
|
+ $data['receiveMobile'] = $custom->mobile;
|
|
|
+ }
|
|
|
+ if (empty($data['address'])) {
|
|
|
+ $data['address'] = $custom->address;
|
|
|
+ $data['province'] = $custom->province;
|
|
|
+ $data['city'] = $custom->city;
|
|
|
+ $data['floor'] = $custom->floor;
|
|
|
+ $data['fullAddress'] = $custom->fullAddress;
|
|
|
+ $data['showAddress'] = $custom->showAddress;
|
|
|
+ $data['long'] = $custom->long;
|
|
|
+ $data['lat'] = $custom->lat;
|
|
|
+ }
|
|
|
|
|
|
$currentGoodsIds = [];
|
|
|
$currentItemIds = [];
|