|
|
@@ -54,8 +54,6 @@ class Order extends Base
|
|
|
{
|
|
|
try {
|
|
|
$param = $request->post();
|
|
|
- echo "同步订单\n";
|
|
|
- print_r($param);
|
|
|
$sessionKey = (new Crypt)->config($this->getDyConfig())->getSessionKey($param['auth']);
|
|
|
if (empty($sessionKey)) return error("授权登录失败");
|
|
|
if (!isset($sessionKey['openid'])) return error("获取数据失败");
|
|
|
@@ -75,6 +73,8 @@ class Order extends Base
|
|
|
if (!empty($param['account_id'])) {
|
|
|
$this->asyncDyOrder($param['account_id'],$openId,$param['order_id']);
|
|
|
}
|
|
|
+ echo getDateFull()."===={$openId}===同步订单\n";
|
|
|
+ print_r($param);
|
|
|
$order = (new SaasOrderLife)->where("open_id",$openId)->where('order_id',$param['order_id'])->with(['goods' => function($query){
|
|
|
$query->field("out_id,product_img");
|
|
|
},'store' => function($query){
|