You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
38
hyhproject/home/controller/Shopfreights.php
Executable file
38
hyhproject/home/controller/Shopfreights.php
Executable file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
namespace wstmart\home\controller;
|
||||
use wstmart\home\model\ShopFreights as M;
|
||||
use wstmart\home\model\Areas;
|
||||
use wstmart\home\model\Shops;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 运费控制器
|
||||
*/
|
||||
class Shopfreights extends Base{
|
||||
protected $beforeActionList = ['checkShopAuth'];
|
||||
/**
|
||||
* 查看运费设置
|
||||
*/
|
||||
public function index(){
|
||||
$shops = new Shops();
|
||||
$shopId = session('WST_USER.shopId');
|
||||
$shFreight = $shops->getShopsFreight($shopId);
|
||||
$this->assign('shFreight',$shFreight);//默认运费
|
||||
return $this->fetch('shops/freights/list');
|
||||
}
|
||||
/**
|
||||
* 运费列表
|
||||
*/
|
||||
public function listProvince(){
|
||||
$m = new M();
|
||||
return $m->listProvince();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
public function edit(){
|
||||
$m = new M();
|
||||
$rs = $m->edit();
|
||||
return $rs;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user