AftersaleController.php
544 字节
<?php
namespace app\admin\controller;
use app\admin\model\RouteModel;
use cmf\controller\AdminBaseController;
use think\Db;
class AftersaleController extends AdminBaseController{
/**
* 售后咨询显示页
*/
public function index(){
if($this -> request -> isPost()){
Db::name('token') -> where('id',3) -> update(['phone'=>$_POST['phone']]);
}
$phone = Db::name('token') -> where('id',3) -> find();
$this -> assign('phone',$phone);
return $this -> fetch();
}
}