Commit b5bc554f authored by shajiaiming's avatar shajiaiming

返回结构调整

parent da3aaaea
......@@ -50,7 +50,10 @@ class WalletController extends BaseController
];
$service = new TrusteeShipService($node_params);
$result = $service->getWalletBalance($params);
return ['code' => 1, 'data' => $result, 'msg' => 'success'];
if (200 !== $result['code']) {
return ['code' => $result['code'], 'data' => [], 'msg' => $result['msg']];
}
return ['code' => 1, 'data' => $result['msg'], 'msg' => 'success'];
}
public function actionUserAsset()
......
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