Commit 5423c7e3 by 杨树贤

修改获取方式

parent bad49c9f
......@@ -10,7 +10,7 @@ class ExchangeSettingTransformer
{
if (isset($data['data']) && is_array($data['data'])) {
foreach ($data['data'] as $key => &$value) {
$value['stock'] = $value['available_stock'];
$value['stock'] = array_get($value,'available_stock');
unset($value['available_stock']);
unset($value['add_time']);
unset($value['update_time']);
......
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 sign in to comment