|
@@ -282,15 +282,19 @@ class Service extends Base
|
|
|
"order.require" => trans("empty.require"),
|
|
"order.require" => trans("empty.require"),
|
|
|
],$request->method());
|
|
],$request->method());
|
|
|
if (!is_array($param)) return error($param);
|
|
if (!is_array($param)) return error($param);
|
|
|
|
|
+ echo getDateFull()."===地址信息\n";
|
|
|
|
|
+ print_r($param);
|
|
|
$cityJson = json_decode($param['city'],true);
|
|
$cityJson = json_decode($param['city'],true);
|
|
|
$cityCode = [];
|
|
$cityCode = [];
|
|
|
|
|
+ $city_text = "";
|
|
|
foreach ($cityJson as $k => $v){
|
|
foreach ($cityJson as $k => $v){
|
|
|
$cityCode[$k] = $v['value'];
|
|
$cityCode[$k] = $v['value'];
|
|
|
- $param['city_text'] .= $v['text'];
|
|
|
|
|
|
|
+ $city_text .= $v['text'];
|
|
|
}
|
|
}
|
|
|
|
|
+ $param['city_text'] = $city_text;
|
|
|
$param['city_code'] = json_encode($cityCode);
|
|
$param['city_code'] = json_encode($cityCode);
|
|
|
$orderData = json_decode($param['order'],true);
|
|
$orderData = json_decode($param['order'],true);
|
|
|
- $order = (new SaasOrder)->where("out_trade_no",$orderData["order"])->with(['poi'])->findOrEmpty();
|
|
|
|
|
|
|
+ $order = (new SaasOrder)->where("out_order_no",$orderData["order"])->with(['poi'])->findOrEmpty();
|
|
|
if ($order->isEmpty()) return error("关联订单错误");
|
|
if ($order->isEmpty()) return error("关联订单错误");
|
|
|
if ($order['openid'] <> $request->user['openid']) return error("关联订单错误");
|
|
if ($order['openid'] <> $request->user['openid']) return error("关联订单错误");
|
|
|
if ($order['status'] <> 1) return error("关联订单错误");
|
|
if ($order['status'] <> 1) return error("关联订单错误");
|