From 1682ea5e9d86fe453fd097ca19deb92c14a0f26c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 26 Jul 2023 17:28:05 +0800 Subject: [PATCH] 1 --- doc/Shop.py | 13 ------------- doc/_common.py | 7 ------- webapp/controller/ShopController.class.php | 13 ------------- 3 files changed, 33 deletions(-) diff --git a/doc/Shop.py b/doc/Shop.py index 61ed2cf1..8c7e5bf7 100644 --- a/doc/Shop.py +++ b/doc/Shop.py @@ -20,19 +20,6 @@ class Shop(object): ['!goods_list', [_common.NewGoods()], '商品列表'], ] }, - { - 'name': 'getShopNames', - 'desc': '获取商店名称', - 'group': 'Shop', - 'url': 'webapp/index.php?c=Shop&a=getShopNames', - 'params': [ - _common.ReqHead() - ], - 'response': [ - _common.RspHead(), - ['!shop_name_list', [_common.ShopName()], '商店id名字对应表'] - ] - }, { 'name': 'buyGoodsNormal', 'desc': '购买商品(正式)', diff --git a/doc/_common.py b/doc/_common.py index d64e21db..6481e640 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -414,13 +414,6 @@ class NewGoods(object): ['pending', 0, '购买中...'], ] -class ShopName(object): - def __init__(self): - self.fields = [ - ['id', 0, '商店id'], - ['name', 0, '商店名字'] - ] - class Shop(object): def __init__(self): diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 98e3a674..03869e39 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -30,8 +30,6 @@ require_once('phpcommon/bignumber.php'); require_once('services/LogService.php'); require_once('services/callback/ShopAddItemService.php'); -use phpcommon\HttpClient; -use phpcommon\SqlHelper; use models\User; use models\Bag; use models\Hero; @@ -189,17 +187,6 @@ class ShopController extends BaseAuthedController ); } - public function getShopNames() - { - $shopList = mt\Shop::all(); - - $this->_rspData( - array( - 'shop_name_list' => $shopList ? $shopList : array(), - ) - ); - } - public function startGoodsDirect() { $id = getReqVal('id', 0);