You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
app
common
home
behavior
common
conf
controller
Base.php
Goods.php
Goodscats.php
Index.php
Shopcats.php
Shopconfigs.php
Shopfreights.php
Shoproles.php
Shops.php
Shopusers.php
Users.php
model
validate
view
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
39 lines
851 B
PHP
Executable File
39 lines
851 B
PHP
Executable File
<?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;
|
|
}
|
|
}
|