Explorar el Código

会员账户调整显示

kevin_zhangl hace 3 años
padre
commit
65b70a81ab

+ 19 - 18
common/models/ShopGoods.php

@@ -49,12 +49,12 @@ class ShopGoods extends \common\components\ActiveRecord
 //        ],
         4 => [
             'id' => 4,
-            'name' => '旅游积分',
+            'name' => 'Travel Bonus',
             'label' => 'tourism_points',
         ],
         5 => [
             'id' => 5,
-            'name' => '车房积分',
+            'name' => 'Car/Villa Bonus',
             'label' => 'garage_points',
         ],
         7 => [
@@ -63,6 +63,7 @@ class ShopGoods extends \common\components\ActiveRecord
             'label' => 'pay_stack',
         ],
     ];
+
     const GOODS_TYPE = [
         1 =>[
             'name'=>'国内商品',//国内商品
@@ -101,16 +102,16 @@ class ShopGoods extends \common\components\ActiveRecord
                 self::SALE_TYPE[7],
             ]
         ],
-        [
-            'id' => 4,
-            'name' => 'Travel bonus products',//旅游积分商品
-            'sell_type' => [
-                self::SALE_TYPE[4]
-            ]
-        ],
+//        [
+//            'id' => 4,
+//            'name' => 'Travel bonus products',//旅游积分商品
+//            'sell_type' => [
+//                self::SALE_TYPE[4]
+//            ]
+//        ],
         [
             'id' => 5,
-            'name' => '车房积分商品',
+            'name' => 'Car/Villa bonus products',
             'sell_type' => [
                 self::SALE_TYPE[5]
             ]
@@ -210,19 +211,19 @@ class ShopGoods extends \common\components\ActiveRecord
     public static function payTypes(){
         return [
             'cash'=>[
-                'name'=>'余额支付' //余额支付
-            ],
-            'point'=>[
-                'name'=>'积分支付' //积分支付
+                'name'=>'Account Balance' //余额支付
             ],
+//            'point'=>[
+//                'name'=>'积分支付' //积分支付
+//            ],
 //            'exchange' => [
 //                'name' => '积分点数'
 //            ],
-            'tourism_points'=>[
-                'name'=>'旅游积分'
-            ],
+//            'tourism_points'=>[
+//                'name'=>'Travel Bonus'
+//            ],
             'garage_points' => [
-                'name' => '车房积分'
+                'name' => 'Car/Villa Bonus'
             ],
             'pay_stack' => [
                 'name' => 'PayStack'

+ 5 - 5
frontendApi/modules/v1/controllers/ShopController.php

@@ -337,13 +337,13 @@ class ShopController extends BaseController {
                 'name' => '1',
                 'label' => 'Standard Products',//普通商品列表
             ],
-            [
-                'name' => '4',
-                'label' => 'Travel Bonus Products',//旅游积分商品
-            ],
+//            [
+//                'name' => '4',
+//                'label' => 'Travel Bonus Products',//旅游积分商品
+//            ],
             [
                 'name' => '5',
-                'label' => 'Car House Bonus Products',//名车积分商品
+                'label' => 'Car/Villa Bonus Products',//车房积分商品
             ],
         ];
         return static::notice($data);