This commit is contained in:
songliang 2022-11-01 14:10:23 +08:00
parent 4ff0206b27
commit a08260f202

View File

@ -31,7 +31,8 @@ class ShopController extends BaseAuthedController {
{
$row = SqlHelper::ormSelect(
$this->_getSelfMysql(),
't_shop_goods'
't_shop_goods',
array(),
);
$this->_rspData(array(
'goods_list' => $row ? $row : array(),
@ -42,7 +43,8 @@ class ShopController extends BaseAuthedController {
{
$row = SqlHelper::ormSelect(
$this->_getSelfMysql(),
't_shop_names'
't_shop_names',
array(),
);
$this->_rspData(array(
'shop_name_list' => $row ? $row : array(),
@ -52,6 +54,7 @@ class ShopController extends BaseAuthedController {
public function buyGoodsNew()
{
$id = getReqVal('id', 0);
$token_type = getReqVal('token_type', '');
$num = getReqVal('goods_num', 0);
$row = SqlHelper::ormSelectOne(
@ -62,8 +65,10 @@ class ShopController extends BaseAuthedController {
)
);
$this->_rspData(array(
'p1' => $id,
'p2' => $row ? $row : array(),
'id' => $id,
'token_type' => $token_type,
'num' => $num,
'row' => $row ? $row : array(),
));
}