1
This commit is contained in:
parent
f19dc015c1
commit
1682ea5e9d
13
doc/Shop.py
13
doc/Shop.py
@ -20,19 +20,6 @@ class Shop(object):
|
|||||||
['!goods_list', [_common.NewGoods()], '商品列表'],
|
['!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',
|
'name': 'buyGoodsNormal',
|
||||||
'desc': '购买商品(正式)',
|
'desc': '购买商品(正式)',
|
||||||
|
@ -414,13 +414,6 @@ class NewGoods(object):
|
|||||||
['pending', 0, '购买中...'],
|
['pending', 0, '购买中...'],
|
||||||
]
|
]
|
||||||
|
|
||||||
class ShopName(object):
|
|
||||||
def __init__(self):
|
|
||||||
self.fields = [
|
|
||||||
['id', 0, '商店id'],
|
|
||||||
['name', 0, '商店名字']
|
|
||||||
]
|
|
||||||
|
|
||||||
class Shop(object):
|
class Shop(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -30,8 +30,6 @@ require_once('phpcommon/bignumber.php');
|
|||||||
require_once('services/LogService.php');
|
require_once('services/LogService.php');
|
||||||
require_once('services/callback/ShopAddItemService.php');
|
require_once('services/callback/ShopAddItemService.php');
|
||||||
|
|
||||||
use phpcommon\HttpClient;
|
|
||||||
use phpcommon\SqlHelper;
|
|
||||||
use models\User;
|
use models\User;
|
||||||
use models\Bag;
|
use models\Bag;
|
||||||
use models\Hero;
|
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()
|
public function startGoodsDirect()
|
||||||
{
|
{
|
||||||
$id = getReqVal('id', 0);
|
$id = getReqVal('id', 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user