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