审查视图

app/admin/controller/AftersaleController.php 544 字节
4  
anyv authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?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();

    }






}