You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
behavior
common
conf
controller
Accreds.php
Addons.php
Adgoods.php
Adpositions.php
Ads.php
Areas.php
Articlecats.php
Articles.php
Attributes.php
Banks.php
Base.php
Brands.php
Carts.php
Cashdraws.php
Chargeitems.php
Cronjobs.php
Datacats.php
Datas.php
Ectday.php
Ectdeal.php
Ecttarget.php
Express.php
Friendlinks.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsclassify.php
Goodsconsult.php
Homemenus.php
Hooks.php
Images.php
Index.php
Informs.php
LogSysData.php
Logmoneys.php
Logoperates.php
Logsms.php
Logstafflogins.php
Member.php
Menus.php
Messages.php
Mobilebtns.php
Navs.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Payments.php
Platform.php
Privileges.php
Recommends.php
Reports.php
Roles.php
Settlements.php
Shops.php
Speccats.php
Staffs.php
Styles.php
Sysconfigs.php
Templatemsgs.php
TradeRule.php
Userranks.php
Users.php
Userscores.php
Wsysconfigs.php
Wxmenus.php
Wxpassivereplys.php
Wxtemplatemsgs.php
Wxusers.php
model
validate
view
app
common
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5436787D.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
98 lines
1.8 KiB
PHP
Executable File
98 lines
1.8 KiB
PHP
Executable File
<?php
|
|
namespace wstmart\admin\controller;
|
|
use wstmart\admin\model\Recommends as M;
|
|
/**
|
|
* ============================================================================
|
|
* 推荐管理控制器
|
|
*/
|
|
class Recommends extends Base{
|
|
/**
|
|
* 查看商品推荐
|
|
*/
|
|
public function goods(){
|
|
return $this->fetch('goods');
|
|
}
|
|
/**
|
|
* 查询商品
|
|
*/
|
|
public function searchGoods(){
|
|
$rs = model('Goods')->searchQuery();
|
|
return WSTReturn("", 1,$rs);
|
|
}
|
|
/**
|
|
* 推荐商品
|
|
*/
|
|
public function editGoods(){
|
|
$m = new M();
|
|
return $m->editGoods();
|
|
}
|
|
/**
|
|
* 获取已选择商品
|
|
*/
|
|
public function listQueryByGoods(){
|
|
$m = new M();
|
|
$rs= $m->listQueryByGoods();
|
|
return WSTReturn("", 1,$rs);
|
|
}
|
|
|
|
/**
|
|
* 查看店铺推荐
|
|
*/
|
|
public function shops(){
|
|
return $this->fetch('shops');
|
|
}
|
|
/**
|
|
* 查询店铺
|
|
*/
|
|
public function searchShops(){
|
|
$rs = model('Shops')->searchQuery();
|
|
return WSTReturn("", 1,$rs);
|
|
}
|
|
/**
|
|
* 推荐店铺
|
|
*/
|
|
public function editShops(){
|
|
$m = new M();
|
|
return $m->editShops();
|
|
}
|
|
/**
|
|
* 获取已选择店铺
|
|
*/
|
|
public function listQueryByShops(){
|
|
$m = new M();
|
|
$rs= $m->listQueryByShops();
|
|
return WSTReturn("", 1,$rs);
|
|
}
|
|
|
|
|
|
/**
|
|
* 查看品牌推荐
|
|
*/
|
|
public function brands(){
|
|
return $this->fetch('brands');
|
|
}
|
|
/**
|
|
* 查询品牌
|
|
*/
|
|
public function searchBrands(){
|
|
$rs = model('Brands')->searchBrands();
|
|
return WSTReturn("", 1,$rs);
|
|
}
|
|
/**
|
|
* 推荐品牌
|
|
*/
|
|
public function editBrands(){
|
|
$m = new M();
|
|
$rs= $m->editBrands();
|
|
return $rs;
|
|
}
|
|
/**
|
|
* 获取已选择品牌
|
|
*/
|
|
public function listQueryByBrands(){
|
|
$m = new M();
|
|
$rs= $m->listQueryByBrands();
|
|
return WSTReturn("", 1,$rs);
|
|
}
|
|
}
|