|
|
@@ -2,8 +2,11 @@
|
|
|
|
|
|
namespace business\controllers;
|
|
|
|
|
|
+use biz\merchant\services\MerchantExtendService;
|
|
|
use biz\merchant\services\MerchantService;
|
|
|
+use biz\merchant\services\ShopService;
|
|
|
use biz\order\services\OrderService;
|
|
|
+use biz\saas\services\RegionService;
|
|
|
use biz\user\services\UserService;
|
|
|
use common\components\configDict;
|
|
|
use common\services\xhPayToolService;
|
|
|
@@ -135,5 +138,16 @@ class OrderController extends BaseController
|
|
|
OrderService::updateById($id, ['actPrice' => $price]);
|
|
|
util::ok('修改成功');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ //下单要用到的相关信息 shish 2019.12.6
|
|
|
+ public function actionOrderRelate()
|
|
|
+ {
|
|
|
+ $regionTree = RegionService::tree();
|
|
|
+ $shop = ShopService::getDefaultShop($this->merchant);
|
|
|
+ $freight = MerchantExtendService::getFreight($this->merchantExtend);
|
|
|
+ $mapKey = 'OFWBZ-2NTHP-EHNDD-LKWQY-GANM7-PXBJH';
|
|
|
+ $out = ['freight' => $freight, 'shop' => $shop, 'region' => $regionTree, 'txMapKey' => $mapKey];
|
|
|
+ util::success($out);
|
|
|
+ }
|
|
|
+
|
|
|
}
|