Commit b5256271 authored by clone's avatar clone

bug

parent 68e4e436
...@@ -4,6 +4,8 @@ namespace app\api_broker\controller; ...@@ -4,6 +4,8 @@ namespace app\api_broker\controller;
use app\api_broker\extend\Basic; use app\api_broker\extend\Basic;
use app\api_broker\service\BargainService; use app\api_broker\service\BargainService;
use app\extra\RedisExt;
use app\model\AliYunSecretReport;
use think\Request; use think\Request;
/** /**
...@@ -27,14 +29,14 @@ class Bargain extends Basic ...@@ -27,14 +29,14 @@ class Bargain extends Basic
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"submit_agent_id" => 93, "submit_agent_id" => 93,
"status" => 1,//0全部 1未结单 2已结单 3 撤销审核 4已撤销 "status" => 1,//0全部 1未结单 2已结单 3 撤销审核 4已撤销
"is_my_correlation" => 1, //是否与我相关 0全部 1与我相关 "is_my_correlation" => 1, //是否与我相关 0全部 1与我相关
// "keyword" => "17717536291", // "keyword" => "17717536291",
"page_no" => 1, "page_no" => 1,
"page_size" => 10 "page_size" => 10
);*/ );*/
$checkResult = $this->validate($params, "BargainValidate.bargainList"); $checkResult = $this->validate($params, "BargainValidate.bargainList");
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("101", $checkResult); return $this->response("101", $checkResult);
...@@ -50,4 +52,14 @@ class Bargain extends Basic ...@@ -50,4 +52,14 @@ class Bargain extends Basic
return $this->response("200", "success", $result); 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
...@@ -585,6 +585,9 @@ Route::group('broker', [ ...@@ -585,6 +585,9 @@ Route::group('broker', [
'bargainMain' => [ 'api_broker/Bargain/bargainList', [ 'method' => 'POST|GET' ] ], 'bargainMain' => [ 'api_broker/Bargain/bargainList', [ 'method' => 'POST|GET' ] ],
'bargainTest' => [ 'api_broker/Bargain/test', [ 'method' => 'POST|GET' ] ],
]); ]);
......
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 to comment