update
This commit is contained in:
@@ -66,7 +66,7 @@ class Article
|
||||
$result['lastIndex'] = $vo['id'];
|
||||
$result["list"][] = $vo;
|
||||
}
|
||||
if(count($list)<env("page_count")){
|
||||
if(count($list)<env("PAGE_COUNT")){
|
||||
$result["lastIndex"] = 0;
|
||||
}
|
||||
return show(SUCCESS_MESSAGE,SUCCESS_CODE,$result);
|
||||
@@ -108,7 +108,7 @@ class Article
|
||||
$result['lastIndex'] = $vo['id'];
|
||||
$result["list"][] = $vo;
|
||||
}
|
||||
if(count($list)<env("page_count")){
|
||||
if(count($list)<env("PAGE_COUNT")){
|
||||
$result["lastIndex"] = 0;
|
||||
}
|
||||
return show(SUCCESS_MESSAGE,SUCCESS_CODE,$result);
|
||||
|
||||
@@ -73,7 +73,7 @@ class Help
|
||||
}
|
||||
$result = [];
|
||||
$list = Db::name("appHelp")->where("student_id",$student_id)->limit(env("page_count"))->order('count desc')->paginate([
|
||||
"list_rows"=>env("page_count"),
|
||||
"list_rows"=>env("PAGE_COUNT"),
|
||||
"page"=>$lastIndex
|
||||
]);
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ class Ranking
|
||||
}
|
||||
$result = [];
|
||||
$list = Db::name("student")->where($where)->limit(env("page_count"))->order('hot desc')->paginate([
|
||||
"list_rows"=>env("page_count"),
|
||||
"list_rows"=>env("PAGE_COUNT"),
|
||||
"page"=>$lastIndex
|
||||
]);
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ class Sign
|
||||
"identifier"=>$info['identifier'],
|
||||
"nickname"=>$info['nickname'],
|
||||
"mobile"=>$info['mobile'],
|
||||
"avatar"=> env("admin_pannel_address") . $info['avatar'],
|
||||
"avatar"=> env("ADMIN_PANNEL_ADDRESS") . $info['avatar'],
|
||||
"gender"=>$info['gender'],
|
||||
"birthday"=>$info['birthday'],
|
||||
"age"=>$info['age'],
|
||||
@@ -59,7 +59,7 @@ class Sign
|
||||
"identifier"=>$info['identifier'],
|
||||
"nickname"=>$info['nickname'],
|
||||
"mobile"=>$info['mobile'],
|
||||
"avatar"=> env("admin_pannel_address") . $info['avatar'],
|
||||
"avatar"=> env("ADMIN_PANNEL_ADDRESS") . $info['avatar'],
|
||||
"gender"=>$info['gender'],
|
||||
"birthday"=>$info['birthday'],
|
||||
"age"=>$info['age'],
|
||||
|
||||
@@ -28,7 +28,7 @@ class Student
|
||||
}
|
||||
$result = [];
|
||||
$list = Db::name("student")->where($where)->limit(env("page_count"))->order('hot desc')->paginate([
|
||||
"list_rows"=>env("page_count"),
|
||||
"list_rows"=>env("PAGE_COUNT"),
|
||||
"page"=>$lastIndex
|
||||
]);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class Upload
|
||||
return show("请选择图片!");
|
||||
}
|
||||
$file = $GLOBALS['data']['file'];
|
||||
$dir = env('upload_directory');
|
||||
$dir = env('UPLOAD_DIRECTORY');
|
||||
if(!is_dir($dir)){
|
||||
mkdir($dir, 0777, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user