Commit 3d7c8c25 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

if See merge request !370
parents 5d6fce67 e05478f1
......@@ -69,14 +69,14 @@ class TradeController extends BaseController
if (empty($model)) {
return ['code' => 1, 'data' => '', 'msg' => '记录不存在'];
}
return ['code' => 0, 'data' => $model['memo']];
return ['code' => 0, 'data' => (string)sprintf("%0.4f", $model['memo'])];
} else {
if (empty($model)) {
return ['code' => 0, 'data' => ['memo' => '', 'coins_fee' => ''], 'msg' => '记录不存在'];
}
return ['code' => 0, 'data' => [
'memo' => $model['memo'],
'coins_fee' => $model['coins_fee']
'coins_fee' => (string)sprintf("%0.4f", $model['coins_fee'])
]];
}
}
......
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