Browse Source

checkredis

yijia
娄梦宁 3 years ago
parent
commit
3f0ccd040e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      addons/unishop/controller/Ads.php
  2. +1
    -1
      addons/unishop/controller/User.php

+ 1
- 1
addons/unishop/controller/Ads.php View File

@@ -47,7 +47,7 @@ class Ads extends Api
public function index()
{
$ads = \addons\unishop\model\Ads::where('status', 1)->cache('ads-index', 20)->select();
$this->success('广告列表', $ads);
$this->success('', $ads);
}

}

+ 1
- 1
addons/unishop/controller/User.php View File

@@ -49,7 +49,7 @@ class User extends Base
$ordinary_user_end=strtotime($ordinary_user_end);
if (time()>$ordinary_user_end || time()<$ordinary_user_start){
$this->auth->logout();
$this->error('It\'s not time to open', $data);
$this->error('It\'s not time to open');
}
}else{
//特权用户


Loading…
Cancel
Save