作者 jinglong
1 个管道 的构建 通过 耗费 3 秒

修改移动限号

@@ -11,6 +11,7 @@ use app\portal\model\PortalCategoryModel; @@ -11,6 +11,7 @@ use app\portal\model\PortalCategoryModel;
11 use app\portal\model\CarWxModel; 11 use app\portal\model\CarWxModel;
12 use app\portal\model\ShowModel; 12 use app\portal\model\ShowModel;
13 use cmf\controller\HomeBaseController; 13 use cmf\controller\HomeBaseController;
  14 +use think\Db;
14 15
15 class TravelController extends HomeBaseController 16 class TravelController extends HomeBaseController
16 { 17 {
@@ -190,7 +191,8 @@ class TravelController extends HomeBaseController @@ -190,7 +191,8 @@ class TravelController extends HomeBaseController
190 $result['number'] = $number; 191 $result['number'] = $number;
191 $result['create_time'] = time(); 192 $result['create_time'] = time();
192 $wxModel = new CarWxModel(); 193 $wxModel = new CarWxModel();
193 - $wxModel->get(1)->delete(); 194 + $car = Db::name('car_wx')->field('id')->find();
  195 + $wxModel->where('id',$car['id'])->delete();
194 $wxModel::create($result); 196 $wxModel::create($result);
195 echo '请求成功'; 197 echo '请求成功';
196 }else{ 198 }else{