|
@@ -140,6 +140,9 @@ class PropertyOrderLogic extends BaseLogic
|
|
|
self::setError('当前订单状态不允许操作');
|
|
self::setError('当前订单状态不允许操作');
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ $propertyHeadInfo = PropertyHeadLogic::detail(['id'=>$orderInfo['property_head_id']]);
|
|
|
|
|
+ //$propertyHeadInfo['lon'] $propertyHeadInfo['lat']
|
|
|
|
|
+
|
|
|
Db::startTrans();
|
|
Db::startTrans();
|
|
|
try {
|
|
try {
|
|
|
|
|
|
|
@@ -153,10 +156,14 @@ class PropertyOrderLogic extends BaseLogic
|
|
|
'goods_id.require' => '订单商品不存在',
|
|
'goods_id.require' => '订单商品不存在',
|
|
|
'contact_number.require' => '联系电话不存在',
|
|
'contact_number.require' => '联系电话不存在',
|
|
|
'contact_people.require' => '联系人不存在',*/
|
|
'contact_people.require' => '联系人不存在',*/
|
|
|
|
|
+ // 物业地址拼接户主详细门牌号
|
|
|
|
|
+ $params['address'] = $params['address']?:($propertyHeadInfo['address'].$propertyUserInfo['address']);
|
|
|
$serviceOrderParams = array_merge($params,[
|
|
$serviceOrderParams = array_merge($params,[
|
|
|
'user_id' => $propertyUserInfo['user_id'],
|
|
'user_id' => $propertyUserInfo['user_id'],
|
|
|
'terminal' => 4,
|
|
'terminal' => 4,
|
|
|
- 'user_info' => ['mobile'=>$userInfo['mobile']]
|
|
|
|
|
|
|
+ 'user_info' => ['mobile'=>$userInfo['mobile']],
|
|
|
|
|
+ 'lon' => $propertyHeadInfo['lon']?:0,
|
|
|
|
|
+ 'lat' => $propertyHeadInfo['lat']?:0,
|
|
|
]);
|
|
]);
|
|
|
Log::write(json_encode($serviceOrderParams,JSON_UNESCAPED_UNICODE));
|
|
Log::write(json_encode($serviceOrderParams,JSON_UNESCAPED_UNICODE));
|
|
|
$result = ServiceOrderLogic::submitOrder($serviceOrderParams);
|
|
$result = ServiceOrderLogic::submitOrder($serviceOrderParams);
|