Browse Source

清算订单号

shish 5 years ago
parent
commit
01b0589778
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app-hd/controllers/PurchaseClearController.php

+ 3 - 1
app-hd/controllers/PurchaseClearController.php

@@ -49,6 +49,7 @@ class PurchaseClearController extends BaseController
             util::fail('订单号无效');
         }
         $current = time();
+        $id = $order->id;
         $deadline = $order->deadline;
         if ($current > strtotime($deadline)) {
             $order->status = PurchaseClearClass::STATUS_EXPIRE;
@@ -96,7 +97,8 @@ class PurchaseClearController extends BaseController
         $tools = new \JsApiPay();
         $jsApiParameters = $tools->GetJsApiParameters($wxOrder, $merchantExtend);
         $newParams = json_decode($jsApiParameters, true);
-
+        $newParams['id'] = $id;
+        $newParams['orderSn'] = $orderSn;
         util::success($newParams);
     }