|
|
@@ -31,8 +31,8 @@ class ApiModel extends BaseModel
|
|
|
$info = parent::getInfo($id); // TODO: Change the autogenerated stub
|
|
|
if ($info) {
|
|
|
// 权限
|
|
|
- if ($info['user_limits']) {
|
|
|
- $info['user_limits'] = explode(',', $info['user_limits']);
|
|
|
+ if (isset($info['user_limits'])) {
|
|
|
+ $info['user_limits'] = $info['user_limits']? explode(',', $info['user_limits']) : [0];
|
|
|
}
|
|
|
|
|
|
// 有效期
|