|
@@ -7,15 +7,10 @@ use think\App;
|
|
|
use think\facade\Db;
|
|
|
|
|
|
//物流信息
|
|
|
-class Express extends \app\BaseController
|
|
|
+class Express extends Base
|
|
|
{
|
|
|
- public $post='';
|
|
|
- public function __construct(App $app)
|
|
|
- {
|
|
|
- parent::__construct($app);
|
|
|
- $this->post = request()->post();
|
|
|
- }
|
|
|
|
|
|
+ //获取快递公司列表
|
|
|
public function list(){
|
|
|
$page = isset($this->post['page']) &&$this->post['page'] !=="" ? intval($this->post['page']):1;
|
|
|
$size = isset($this->post['size']) &&$this->post['size'] !=="" ? intval($this->post['size']):10;
|
|
@@ -35,6 +30,8 @@ class Express extends \app\BaseController
|
|
|
->page($page,$size)->select();
|
|
|
return app_show(0,'获取成功',['list'=>$list,"count"=>$count]);
|
|
|
}
|
|
|
+
|
|
|
+ //快递公司启禁用
|
|
|
public function SetUse(){
|
|
|
$id = isset($this->post['id']) &&$this->post['id'] !="" ? intval($this->post['id']):'';
|
|
|
if($id==''){
|
|
@@ -51,6 +48,7 @@ class Express extends \app\BaseController
|
|
|
return $up?app_show(0,"更新成功"):error_show(1005,"更新失败");
|
|
|
}
|
|
|
|
|
|
+ //获取可用的快递公司列表
|
|
|
public function GetExpress(){
|
|
|
$type = isset($this->post['type']) &&$this->post['type'] !=="" ? intval($this->post['type']):'';
|
|
|
$where[] = ['canOrder',"=",1];
|