ryan 3 هفته پیش
والد
کامیت
2cc6682dd6
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      frontendApi/modules/v1/controllers/UserController.php

+ 14 - 0
frontendApi/modules/v1/controllers/UserController.php

@@ -549,10 +549,24 @@ class UserController extends BaseController {
                 ->orderBy('S.SORT ASC')
                 ->orderBy('S.SORT ASC')
                 ->asArray()->all();
                 ->asArray()->all();
 
 
+
+            // 银行开户行
+            $allOpenBank = OpenBank::find()
+                ->where('STATUS=:STATUS AND COUNTRY_ID=:COUNTRY_ID', [':STATUS' => 1, ':COUNTRY_ID' => $countryId])
+                ->orderBy('BANK_NAME ASC')
+                ->asArray()
+                ->all();
+            // 售卖方式
+            $sellType = ShopGoods::getCategoryType();
+            unset($sellType[0]['sell_type'][1]);
+
             return static::notice([
             return static::notice([
                 'draft' => $draft,
                 'draft' => $draft,
                 'allDecPackage' => $packages,
                 'allDecPackage' => $packages,
                 'allGoods' => $goods,
                 'allGoods' => $goods,
+                'allOpenBank' => $allOpenBank,
+                'sellType' => $sellType,
+                'categoryType' => ShopGoods::getCategoryType()[0]['id'],
                 'region' => Region::getByCountryId($countryId),
                 'region' => Region::getByCountryId($countryId),
                 'payList' => ['pay_stack' => ['name' => 'PayStack']],
                 'payList' => ['pay_stack' => ['name' => 'PayStack']],
                 'decLevel' => DeclarationLevel::getData(),
                 'decLevel' => DeclarationLevel::getData(),