Commit 628a579c by hcy001

1

parent f1deaf13
...@@ -49,6 +49,10 @@ class ApiController extends Controller ...@@ -49,6 +49,10 @@ class ApiController extends Controller
public function ApiInquiryItemsClose($request, $id){ public function ApiInquiryItemsClose($request, $id){
Export((new InquiryItemsModel())->inquiryItemsClose($request->input('inquiry_items_id'))); Export((new InquiryItemsModel())->inquiryItemsClose($request->input('inquiry_items_id')));
} }
//关闭整个询价单
private function ApiUrgePrice($request, $id){
Export((new InquiryModel())->inquiryClose($request->input('inquiry_id')));
}
//询价列表 //询价列表
private function ApiInquiryList($request, $id){ private function ApiInquiryList($request, $id){
$input = $_REQUEST; $input = $_REQUEST;
......
<?php <?php
Route::group(['middleware' => 'web'], function () { //Route::group(['middleware' => 'web'], function () {
Route::get('/', 'WebController@info'); // Route::get('/', 'WebController@info');
Route::match(['get', 'post'],'/web/{key}', 'WebController@info'); // Route::match(['get', 'post'],'/web/{key}', 'WebController@info');
Route::match(['get', 'post'],'/api/{key}', 'ApiController@Entrance'); // Route::match(['get', 'post'],'/api/{key}', 'ApiController@Entrance');
Route::match(['get', 'post'],'/hd/{key}', 'HdController@Entrance'); // Route::match(['get', 'post'],'/hd/{key}', 'HdController@Entrance');
}); //});
Route::match(['get', 'post'],'/hd/{key}', 'HdController@Entrance');
Route::match(['get', 'post'],'/api/{key}', 'ApiController@Entrance');
Route::match(['get', 'post'],'/server/{key}', 'ServerController@Entrance'); //对外提供导出回调接口 Route::match(['get', 'post'],'/server/{key}', 'ServerController@Entrance'); //对外提供导出回调接口
\ No newline at end of file
...@@ -142,8 +142,17 @@ class InquiryItemsModel extends Model ...@@ -142,8 +142,17 @@ class InquiryItemsModel extends Model
return [1001,"询价明细id不得为空!"]; return [1001,"询价明细id不得为空!"];
} }
$this->where("id",$inquiry_items_id)->update(["status"=>-1,"update_time"=>time()]); $this->where("id",$inquiry_items_id)->update(["status"=>-1,"update_time"=>time()]);
return [0,"更新成功"]; return [0,"关闭询价单明细成功"];
} }
/*
* 吹报价
*/
public function urgePrice(){
$Redis= \RedisDB::connection();
}
} }
\ No newline at end of file
...@@ -135,7 +135,7 @@ class InquiryModel extends Model ...@@ -135,7 +135,7 @@ class InquiryModel extends Model
*/ */
public function inquiryClose($inquiry_id){ public function inquiryClose($inquiry_id){
$this->where("id",$inquiry_id)->update(["status"=>-1,"update_time"=>time()]); $this->where("id",$inquiry_id)->update(["status"=>-1,"update_time"=>time()]);
return [0,"更新成功"]; return [0,"关闭整个询价单成功"];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment