This commit is contained in:
aozhiwei 2023-07-26 17:28:05 +08:00
parent f19dc015c1
commit 1682ea5e9d
3 changed files with 0 additions and 33 deletions

View File

@ -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': '购买商品(正式)',

View File

@ -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):

View File

@ -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);