Commit 628a579c by hcy001

1

parent f1deaf13
......@@ -49,6 +49,10 @@ class ApiController extends Controller
public function ApiInquiryItemsClose($request, $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){
$input = $_REQUEST;
......
<?php
Route::group(['middleware' => 'web'], function () {
Route::get('/', 'WebController@info');
Route::match(['get', 'post'],'/web/{key}', 'WebController@info');
Route::match(['get', 'post'],'/api/{key}', 'ApiController@Entrance');
Route::match(['get', 'post'],'/hd/{key}', 'HdController@Entrance');
});
//Route::group(['middleware' => 'web'], function () {
// Route::get('/', 'WebController@info');
// Route::match(['get', 'post'],'/web/{key}', 'WebController@info');
// 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'],'/api/{key}', 'ApiController@Entrance');
Route::match(['get', 'post'],'/server/{key}', 'ServerController@Entrance'); //对外提供导出回调接口
\ No newline at end of file
......@@ -142,8 +142,17 @@ class InquiryItemsModel extends Model
return [1001,"询价明细id不得为空!"];
}
$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
*/
public function inquiryClose($inquiry_id){
$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