Commit fedccb4d authored by rlgy's avatar rlgy

账单

parent b4e2312e
...@@ -28,13 +28,13 @@ class BillController extends BaseController ...@@ -28,13 +28,13 @@ class BillController extends BaseController
if ($model->save(false)) { if ($model->save(false)) {
//加入队列 //加入队列
Yii::$app->queue->push(new BillJob(['id' => $model->id, 'txid' => $model->txid, 'chain' => $model->chain, 'from' => $model->from])); Yii::$app->queue->push(new BillJob(['id' => $model->id, 'txid' => $model->txid, 'chain' => $model->chain, 'from' => $model->from]));
return ['code' => 0, 'message' => 'succeed']; return ['code' => 0, 'msg' => 'succeed'];
} }
} catch (\Exception $exception) { } catch (\Exception $exception) {
return ['code' => $exception->getCode(), 'message' => '保存失败']; return ['code' => $exception->getCode(), 'msg' => '保存失败'];
} }
} else { } else {
return ['code' => -1, 'message' => '数据验证失败']; return ['code' => -1, 'msg' => '数据验证失败'];
} }
} }
...@@ -47,7 +47,7 @@ class BillController extends BaseController ...@@ -47,7 +47,7 @@ class BillController extends BaseController
$page = $post['$page'] ?? 1; $page = $post['$page'] ?? 1;
$limit = $post['limit'] ?? 10; $limit = $post['limit'] ?? 10;
if (empty($from)) { if (empty($from)) {
return ['code' => -1, 'message' => '数据不存在']; return ['code' => -1, 'msg' => '数据不存在'];
} }
$condition = ['AND']; $condition = ['AND'];
if (!empty($coinname)) { if (!empty($coinname)) {
......
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