<?php
namespace app\store\controller\apps\wow;
use app\store\controller\Controller;
use app\store\model\wow\Shoping as ShopingModel;
use app\common\service\wechat\wow\Shoping as WowService;
class Shoping extends Controller
{
public function index($search = '')
{
$model = new ShopingModel;
$list = $model->getList($search);
return $this->fetch('index', compact('list'));
}
public function delete($id)
{
$WechatWow = new WowService($this->getWxappId());
$WechatWow->delete($id);
return $this->renderSuccess('操作成功');
}
}