You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
<?php
|
|
namespace app\admin\controller\user;
|
|
|
|
|
|
use app\admin\logic\order\OrderLogic;
|
|
use app\admin\logic\user\ShipLogic;
|
|
use app\admin\logic\user\ShipLogLogic;
|
|
use app\common\basics\AdminBase;
|
|
use app\common\enum\PayEnum;
|
|
use app\common\model\Client_;
|
|
use app\common\model\order\Order as OrderModel;
|
|
use app\common\server\ConfigServer;
|
|
use app\common\server\JsonServer;
|
|
use think\exception\ValidateException;
|
|
use app\admin\validate\user\LevelValidate;
|
|
use app\admin\logic\user\LevelLogic;
|
|
|
|
class ShipLog extends AdminBase
|
|
{
|
|
public function lists()
|
|
{
|
|
if($this->request->isAjax()){
|
|
$get = $this->request->get();
|
|
$lists = ShipLogLogic::lists($get);
|
|
return JsonServer::success('', $lists);
|
|
}
|
|
// 订单来源
|
|
$order_source = Client_::getClient(true);
|
|
// 支付方式
|
|
$pay_way = PayEnum::getPayWay(true);
|
|
return view('', [
|
|
'order_source' => $order_source,
|
|
'pay_way' => $pay_way,
|
|
]);
|
|
}
|
|
|
|
public function del()
|
|
{
|
|
$id = $this->request->post('id', '', 'intval');
|
|
$result = ShipLogLogic::del($id);
|
|
if($result === true) {
|
|
return JsonServer::success('删除成功');
|
|
}
|
|
return JsonServer::error(ShipLogLogic::getError());
|
|
}
|
|
|
|
}
|