|
|
@@ -90,6 +90,8 @@ class Confirm extends Base
|
|
|
$param['address'] = $address['address']??'';
|
|
|
if (empty($orderLife['certificate_id'])) {
|
|
|
$orderDetail = (new DouyinOrder)->config($this->getDyConfig())->token()->getOrderDetail([$param['order']]);
|
|
|
+ echo getDateFull()."===获取券码返回\n";
|
|
|
+ print_r($orderDetail);
|
|
|
if (!isset($orderDetail['data']['certificate_info_list'][0]['certificate_id'])) return error("订单数据异常!");
|
|
|
$param['certificate_id'] = $orderDetail['data']['certificate_info_list'][0]['certificate_id'];
|
|
|
} else {
|
|
|
@@ -98,6 +100,8 @@ class Confirm extends Base
|
|
|
$param['lock_key'] = strtoupper(CodeExtend::random(18,3));
|
|
|
// 锁码
|
|
|
$resp = (new DouyinOrder)->config($this->getDyConfig())->token()->orderLock(2,$param['order'],$param['certificate_id'],$param['lock_key']);
|
|
|
+ echo getDateFull()."===锁码返回\n";
|
|
|
+ print_r($resp);
|
|
|
if ($resp['err_no'] <> 0) return error("订单数据异常");
|
|
|
$orderLife->status = 2;
|
|
|
$orderLife->save();
|