Commit e05478f1 authored by shajiaiming's avatar shajiaiming

if

parent 5368a8ac
......@@ -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