|
|
@@ -5,11 +5,13 @@ namespace client\controllers;
|
|
|
use biz\goods\services\CategoryService;
|
|
|
use biz\goods\services\GoodsCategoryService;
|
|
|
use biz\goods\services\GoodsService;
|
|
|
+use biz\merchant\services\MerchantExtendService;
|
|
|
use biz\merchant\services\MerchantService;
|
|
|
use biz\merchant\services\ShopService;
|
|
|
use biz\order\services\OrderGoodsService;
|
|
|
use biz\order\services\OrderService;
|
|
|
use biz\promote\services\CouponService;
|
|
|
+use biz\saas\services\RegionService;
|
|
|
use biz\user\services\UserAssetService;
|
|
|
use common\components\configDict;
|
|
|
use common\components\stringUtil;
|
|
|
@@ -19,17 +21,18 @@ use common\components\util;
|
|
|
|
|
|
class OrderController extends BaseController
|
|
|
{
|
|
|
+
|
|
|
+ //下单要用到的相关信息 shish 2019.12.6
|
|
|
+ public function actionOrderRelate()
|
|
|
+ {
|
|
|
+ RegionService::tree();
|
|
|
+ $shop = ShopService::getDefaultShopInfo($this->merchant);
|
|
|
+ $freight = MerchantExtendService::getFreight($this->merchantExtend);
|
|
|
+ }
|
|
|
|
|
|
//商城下单操作 shish 2019.12.3
|
|
|
public function actionCreateOrder()
|
|
|
{
|
|
|
-
|
|
|
- //给出省市区的接口 todo
|
|
|
- //给出商家门店地址接口 todo
|
|
|
- //给出腾讯的接口 todo
|
|
|
- //运费 计算方式 todo
|
|
|
- //余额支付 要使用哪个接口 todo
|
|
|
-
|
|
|
$post = Yii::$app->request->post();
|
|
|
$goodsId = isset($post['goodsId']) ? $post['goodsId'] : 0;
|
|
|
$goodsStyleId = isset($post['goodsStyleId']) ? $post['goodsStyleId'] : 0;
|
|
|
@@ -126,7 +129,13 @@ class OrderController extends BaseController
|
|
|
|
|
|
util::success(['orderId' => $orderId, 'totalPrice' => $showPrice, 'couponId' => $couponId]);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ //余额支付 shish 2019.12.6
|
|
|
+ public function actionBalancePay()
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
//获取商城下单要用的微信支付参数 shish 2019.21.3
|
|
|
public function actionWxPay()
|
|
|
{
|