Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
b5256271
Commit
b5256271
authored
Aug 30, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
68e4e436
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
Bargain.php
application/api_broker/controller/Bargain.php
+21
-8
route.php
application/route.php
+3
-0
No files found.
application/api_broker/controller/Bargain.php
View file @
b5256271
...
...
@@ -4,6 +4,8 @@ namespace app\api_broker\controller;
use
app\api_broker\extend\Basic
;
use
app\api_broker\service\BargainService
;
use
app\extra\RedisExt
;
use
app\model\AliYunSecretReport
;
use
think\Request
;
/**
...
...
@@ -27,14 +29,14 @@ class Bargain extends Basic
{
$params
=
$this
->
params
;
/* $params = array(
"submit_agent_id" => 93,
"status" => 1,//0全部 1未结单 2已结单 3 撤销审核 4已撤销
"is_my_correlation" => 1, //是否与我相关 0全部 1与我相关
// "keyword" => "17717536291",
"page_no" => 1,
"page_size" => 10
);*/
/* $params = array(
"submit_agent_id" => 93,
"status" => 1,//0全部 1未结单 2已结单 3 撤销审核 4已撤销
"is_my_correlation" => 1, //是否与我相关 0全部 1与我相关
// "keyword" => "17717536291",
"page_no" => 1,
"page_size" => 10
);*/
$checkResult
=
$this
->
validate
(
$params
,
"BargainValidate.bargainList"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
...
...
@@ -50,4 +52,14 @@ class Bargain extends Basic
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
public
function
test
()
{
$model
=
new
AliYunSecretReport
();
$redis
=
RedisExt
::
getRedis
();
$userList
=
$model
->
getCallUserId
();
foreach
(
$userList
as
$item
)
{
$redis
->
set
(
"save_call_num_"
.
$item
[
"users_id"
],
1
,
3600
*
24
);
}
}
}
\ No newline at end of file
application/route.php
View file @
b5256271
...
...
@@ -585,6 +585,9 @@ Route::group('broker', [
'bargainMain'
=>
[
'api_broker/Bargain/bargainList'
,
[
'method'
=>
'POST|GET'
]
],
'bargainTest'
=>
[
'api_broker/Bargain/test'
,
[
'method'
=>
'POST|GET'
]
],
]);
...
...
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