Commit 67f52b1e authored by rlgy's avatar rlgy

update

parent 531ae8f7
...@@ -134,25 +134,28 @@ class GuodunController extends BaseController ...@@ -134,25 +134,28 @@ class GuodunController extends BaseController
public function actionBillList() public function actionBillList()
{ {
$response = new ResponseBuild(); $response = new ResponseBuild();
$post = Yii::$app->request->post();
$post = Yii::$app->request->post(); $page = $post['page'] ?? 1;
$page = $post['page'] ?? 1; $limit = $post['limit'] ?? 10;
$limit = $post['limit'] ?? 10; $type = $post['type'] ?? ''; //类型,1提币,2锁仓释放
$type = $post['type'] ?? ''; //类型,1提币,2锁仓释放 $mobile = $post['mobile'] ?? '';
$mobile = $post['mobile'] ?? ''; $id = $post['id'] ?? 0;
if (empty($id)) {
if (empty($mobile)) { if (empty($mobile)) {
$response->build(ResponseBuild::STATUS_PARAMS_NOT_VALIDATE); $response->build(ResponseBuild::STATUS_PARAMS_NOT_VALIDATE);
return $response; return $response;
} }
$conditions = ['mobile' => $mobile];
$conditions = ['mobile' => $mobile]; if ($type) {
if ($type) { $conditions['type'] = $type;
$conditions['type'] = $type; }
$datas = CoinReleaseList::getList2($page, $limit, $conditions, ['create_time' => SORT_ASC]);
$response->build(ResponseBuild::STATUS_SUCCEED, '', $datas);
} else {
$conditions = ['id' => $id];
$datas = CoinReleaseList::getList2(1, 1, $conditions, ['create_time' => SORT_ASC]);
$response->build(ResponseBuild::STATUS_SUCCEED, '', $datas);
} }
$datas = CoinReleaseList::getList2($page, $limit, $conditions, ['create_time' => SORT_ASC]);
$response->build(ResponseBuild::STATUS_SUCCEED, '', $datas);
return $response; return $response;
} }
} }
\ No newline at end of file
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