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
1d90d9ff
authored
Mar 04, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
e6a98bef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/ApiController.php
View file @
1d90d9ff
...
@@ -33,12 +33,17 @@ class ApiController extends Controller
...
@@ -33,12 +33,17 @@ class ApiController extends Controller
public
$user_id
=
""
;
//用户id
public
$user_id
=
""
;
//用户id
public
$user_name
=
""
;
//用户名称
public
$user_name
=
""
;
//用户名称
public
function
Entrance
(
Request
$request
,
$id
)
{
public
function
Entrance
(
Request
$request
,
$id
)
{
$loginInfo
=
(
new
LoginModel
())
->
checkLogin
(
$request
);
$loginInfo
=
(
new
LoginModel
())
->
checkLogin
(
$request
);
$this
->
user_id
=
$loginInfo
[
"user_id"
];
$this
->
user_id
=
$loginInfo
[
"user_id"
];
$this
->
user_name
=
$loginInfo
[
"user_name"
];
$this
->
user_name
=
$loginInfo
[
"user_name"
];
$this
->
$id
(
$request
,
$id
);
$input
=
$_REQUEST
;
$input
[
"user_id"
]
=
$this
->
user_id
;
$input
[
"user_name"
]
=
$this
->
user_name
;
$this
->
$id
(
$input
,
$id
);
}
}
//关闭整个询价单
//关闭整个询价单
...
@@ -54,24 +59,18 @@ class ApiController extends Controller
...
@@ -54,24 +59,18 @@ class ApiController extends Controller
Export
((
new
InquiryModel
())
->
inquiryClose
(
$request
->
input
(
'inquiry_id'
)));
Export
((
new
InquiryModel
())
->
inquiryClose
(
$request
->
input
(
'inquiry_id'
)));
}
}
//询价列表
//询价列表
private
function
ApiInquiryList
(
$request
,
$id
){
private
function
ApiInquiryList
(
$input
,
$id
){
$input
=
$_REQUEST
;
$input
[
"user_id"
]
=
$this
->
user_id
;
$input
[
"email"
]
=
$this
->
user_name
;
ExportLayui
((
new
InquiryModel
())
->
getList
(
$input
));
ExportLayui
((
new
InquiryModel
())
->
getList
(
$input
));
}
}
//询价池
//询价池
private
function
ApiInquiryListPool
(
$request
,
$id
){
private
function
ApiInquiryListPool
(
$input
,
$id
){
$input
=
$_REQUEST
;
$input
[
"user_id"
]
=
$this
->
user_id
;
$input
[
"email"
]
=
$this
->
user_name
;
ExportLayui
((
new
InquiryModel
())
->
getListPool
(
$input
));
ExportLayui
((
new
InquiryModel
())
->
getListPool
(
$input
));
}
}
//报价明细列表列表
//报价明细列表列表
private
function
ApiQuoteItemsList
(
$
reques
t
,
$id
){
private
function
ApiQuoteItemsList
(
$
inpu
t
,
$id
){
ExportLayui
((
new
QuoteModel
())
->
ItemsList
(
$
_REQUEST
));
ExportLayui
((
new
QuoteModel
())
->
ItemsList
(
$
input
));
}
}
//搜索品牌
//搜索品牌
...
@@ -118,11 +117,8 @@ class ApiController extends Controller
...
@@ -118,11 +117,8 @@ class ApiController extends Controller
}
}
// 领取询价
// 领取询价
public
function
ApiTakeInquiry
(
$
reques
t
,
$id
)
public
function
ApiTakeInquiry
(
$
inpu
t
,
$id
)
{
{
$input
=
$_REQUEST
;
$input
[
"user_id"
]
=
$this
->
user_id
;
$input
[
"email"
]
=
$this
->
user_name
;
Export
((
new
InquiryItemsModel
())
->
takeInquiry
(
$input
));
Export
((
new
InquiryItemsModel
())
->
takeInquiry
(
$input
));
}
}
...
...
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