Commit 67f52b1e authored by rlgy's avatar rlgy

update

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