Commit 4af63110 authored by ZhuChunYang's avatar ZhuChunYang

update

parent aebc2ffd
......@@ -435,7 +435,7 @@ class CoinController extends BaseController
foreach ($data as $item){
if($item){
$platformInfo['platform'] = $item;
$icon = Yii::$app->redis_app->hget('platform_image_info',$item);
$icon = Yii::$app->redis->hget('platform_image_info',$item);
$platformInfo['icon'] = $icon ?? '';
$platformItems[] = $platformInfo;
}
......@@ -452,7 +452,7 @@ class CoinController extends BaseController
$platform = Yii::$app->request->post('platform');
$image = Yii::$app->request->post('image');
if($platform && $image){
Yii::$app->redis_app->hset('platform_image_info',$platform,$image);
Yii::$app->redis->hset('platform_image_info',$platform,$image);
return ['code' => 0, 'msg' => '图片添加成功'];
}
return ['code' => 0, 'msg' => '图片添加失败'];
......
......@@ -182,7 +182,7 @@ class ExchangeBusiness
foreach ($rows as $key => $row) {
$rows[$key]['sid'] = ucfirst($rows[$key]['sid']);
$platform = strtoupper($rows[$key]['platform']);
$platform_icon = Yii::$app->redis_app->hget('platform_image_info',$platform);
$platform_icon = Yii::$app->redis->hget('platform_image_info',$platform);
$rows[$key]['platform_icon'] = $platform_icon ?? '';
}
return ['total' => $total, 'data' => $rows];
......
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