Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2faa9bc6
authored
May 26, 2021
by
duwenjun
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
队列
parent
0885c14f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/ApiController.php
View file @
2faa9bc6
...
...
@@ -3,6 +3,7 @@
namespace
App\Http\Controllers
;
use
App\Http\Queue\RabbitQueueModel
;
use
App\Model\CommonModel
;
use
App\Model\InquiryItemsAssignModel
;
use
App\Model\InquiryItemsReportModel
;
...
...
@@ -69,9 +70,13 @@ class ApiController extends Controller
public
function
ApiInquiryItemsClose
(
$input
,
$id
){
$res
=
(
new
InquiryItemsModel
())
->
inquiryItemsClose
(
$input
);
$url
=
Config
(
'website.cloud_domain'
)
.
"/inner/inquiry/closeautoinquiry"
;
$http
=
new
\GuzzleHttp\Client
;
$response
=
$http
->
post
(
$url
,
[
"form_params"
=>
[
"inquiry_items_id"
=>
$input
[
'inquiry_items_id'
]]]);
// 加入队列, 后续会关闭云芯询价
$RabbitQueueModel
=
new
RabbitQueueModel
();
$queue_data
=
[
"queue_route_key"
=>
'/inquiry/closeautoinquiry'
,
"inquiry_items_id"
=>
$input
[
'inquiry_items_id'
],
];
$RabbitQueueModel
->
push
(
"cloud_common_queue"
,
json_encode
(
$queue_data
));
Export
(
$res
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment