Commit b5256271 authored by clone's avatar clone

bug

parent 68e4e436
......@@ -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;
/**
......@@ -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
......@@ -585,6 +585,9 @@ Route::group('broker', [
'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