正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -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{ |
-
请 注册 或 登录 后发表评论