|
@@ -24,8 +24,6 @@ use common\components\util;
|
|
|
class OrderController extends BaseController
|
|
class OrderController extends BaseController
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- public $guestAccess = ['order-relate', 'fast-pay'];
|
|
|
|
|
-
|
|
|
|
|
//商城下单操作 ssh 2019.12.3
|
|
//商城下单操作 ssh 2019.12.3
|
|
|
public function actionCreateOrder()
|
|
public function actionCreateOrder()
|
|
|
{
|
|
{
|
|
@@ -145,8 +143,8 @@ class OrderController extends BaseController
|
|
|
public function actionOrderRelate()
|
|
public function actionOrderRelate()
|
|
|
{
|
|
{
|
|
|
$regionTree = RegionService::tree();
|
|
$regionTree = RegionService::tree();
|
|
|
- $shop = ShopService::getDefaultShop($this->sj);
|
|
|
|
|
- $freight = MerchantExtendService::getFreight($this->sjExtend);
|
|
|
|
|
|
|
+ $shop = $this->shop;
|
|
|
|
|
+ $freight = ['first' => 5, 'add' => 2];
|
|
|
$mapKey = 'OFWBZ-2NTHP-EHNDD-LKWQY-GANM7-PXBJH';
|
|
$mapKey = 'OFWBZ-2NTHP-EHNDD-LKWQY-GANM7-PXBJH';
|
|
|
$out = ['freight' => $freight, 'shop' => $shop, 'region' => $regionTree, 'txMapKey' => $mapKey, 'merchant' => $this->sj];
|
|
$out = ['freight' => $freight, 'shop' => $shop, 'region' => $regionTree, 'txMapKey' => $mapKey, 'merchant' => $this->sj];
|
|
|
util::success($out);
|
|
util::success($out);
|
|
@@ -352,6 +350,8 @@ class OrderController extends BaseController
|
|
|
$jsApiParameters = $tools->GetJsApiParameters($wxOrder, $sjExtend);
|
|
$jsApiParameters = $tools->GetJsApiParameters($wxOrder, $sjExtend);
|
|
|
$newParams = json_decode($jsApiParameters, true);
|
|
$newParams = json_decode($jsApiParameters, true);
|
|
|
$newParams['orderId'] = $orderId;
|
|
$newParams['orderId'] = $orderId;
|
|
|
|
|
+ $newParams['orderSn'] = $orderSn;
|
|
|
|
|
+ $newParams['totalPrice'] = $actPrice;
|
|
|
util::success($newParams);
|
|
util::success($newParams);
|
|
|
|
|
|
|
|
} elseif ($payWay == 1) {
|
|
} elseif ($payWay == 1) {
|