|
|
@@ -68,6 +68,8 @@ class Confirm extends Base
|
|
|
{
|
|
|
try {
|
|
|
$param = $request->post();
|
|
|
+ echo getDateFull()."====提交预约\n";
|
|
|
+ print_r($param);
|
|
|
$orderLife = (new SaasOrderLife)->where("order_id",$param['order'])->with(['store','agent'])->findOrEmpty();
|
|
|
if ($orderLife->isEmpty()) return errorTrans("empty.data");
|
|
|
$order = (new SaasOrder)->where("order_id",$param['order'])->where("status","in",[1,2,4])->findOrEmpty();
|
|
|
@@ -88,8 +90,6 @@ class Confirm extends Base
|
|
|
$param['mobile'] = $address['mobile']??'';
|
|
|
$param['region'] = $address['region']??'';
|
|
|
$param['address'] = $address['address']??'';
|
|
|
- echo getDateFull()."====提交预约\n";
|
|
|
- print_r($param);
|
|
|
$orderDetail = (new DouyinOrder)->config($this->getDyConfig())->token()->getOrderDetail([$param['order']]);
|
|
|
if (!isset($orderDetail['data']['certificate_info_list'][0]['certificate_id'])) return error("订单数据异常!");
|
|
|
$param['certificate_id'] = $orderDetail['data']['certificate_info_list'][0]['certificate_id'];
|