Browse Source

接口优化

dev
nizongfeng 3 years ago
parent
commit
492d91574c
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      application/admin/controller/OrderMain.php

+ 3
- 2
application/admin/controller/OrderMain.php View File

@@ -4,6 +4,7 @@ namespace app\admin\controller;

use app\admin\model\Area;
use app\admin\service\OrderMainDao;
use app\admin\service\OrderMainService;
use app\common\controller\Backend;
use think\Db;
use think\exception\PDOException;
@@ -228,8 +229,8 @@ class OrderMain extends Backend
*/
public function newAdd(){
$params=$this->request->post();
$orderMainDao = new OrderMainDao();
return json($orderMainDao->addMain($params));
$orderMainService = new OrderMainService();
return json($orderMainService->createOrder($params));
}

private function insertOrderMain($params){


Loading…
Cancel
Save