|
@@ -49,6 +49,7 @@ class Base
|
|
|
// 同步已经下单的订单
|
|
// 同步已经下单的订单
|
|
|
if (!empty($account)) {
|
|
if (!empty($account)) {
|
|
|
$resp = (new Client)->config($this->getDyConfig())->token()->queryOrder($account,$openId);
|
|
$resp = (new Client)->config($this->getDyConfig())->token()->queryOrder($account,$openId);
|
|
|
|
|
+ print_r($resp);
|
|
|
$store = (new SaasStore)->where("store_id",$account)->findOrEmpty();
|
|
$store = (new SaasStore)->where("store_id",$account)->findOrEmpty();
|
|
|
if (!empty($resp['data']['orders'])) {
|
|
if (!empty($resp['data']['orders'])) {
|
|
|
$orderData = $orderLog = [];
|
|
$orderData = $orderLog = [];
|
|
@@ -68,6 +69,7 @@ class Base
|
|
|
"out_id" => $certificates['sku_info']['sku_id'],
|
|
"out_id" => $certificates['sku_info']['sku_id'],
|
|
|
"product_name" => $certificates['sku_info']['title'],
|
|
"product_name" => $certificates['sku_info']['title'],
|
|
|
"groupon_type" => $certificates['sku_info']['groupon_type'],
|
|
"groupon_type" => $certificates['sku_info']['groupon_type'],
|
|
|
|
|
+ "certificate_id" => $certificates['certificate_id']??'',
|
|
|
"start_time" => date("Y-m-d H:i:s",$certificates['start_time']),
|
|
"start_time" => date("Y-m-d H:i:s",$certificates['start_time']),
|
|
|
"status" => 1
|
|
"status" => 1
|
|
|
];
|
|
];
|