diff --git a/server/cn/home/www/IoTgod-www/usr/themes/handsome/libs/Utils.php b/server/cn/home/www/IoTgod-www/usr/themes/handsome/libs/Utils.php
index dc13ca4..6a0fdc5 100644
--- a/server/cn/home/www/IoTgod-www/usr/themes/handsome/libs/Utils.php
+++ b/server/cn/home/www/IoTgod-www/usr/themes/handsome/libs/Utils.php
@@ -83,10 +83,10 @@ class Utils {
public static function getGravator($email,$host,$size){
$options = mget();
- $default = '';
- if (strlen($options->defaultAvator) > 0){
+ $default = 'https://image.yimian.xyz/acg/head/'.mt_rand(1,130).'.png';
+ /*if (strlen($options->defaultAvator) > 0){
$default = $options->defaultAvator;
- }
+ }*/
$url = '/';//自定义头像目录,一般保持默认即可
//$size = '40';//自定义头像大小
$rating = Helper::options()->commentsAvatarRating;
diff --git a/server/cn/home/www/api/www-api/moe/head/index.php b/server/cn/home/www/api/www-api/moe/head/index.php
new file mode 100644
index 0000000..3713a75
--- /dev/null
+++ b/server/cn/home/www/api/www-api/moe/head/index.php
@@ -0,0 +1,24 @@
+ "moe", "timestamp" => date('Y-m-d H:i:s', time()), "ip" => ip2long(get_ip()), "_from" => get_from(), "content" => "head/".$id));
+
+die();
diff --git a/server/cn/home/www/api/www-api/moe/index.php b/server/cn/home/www/api/www-api/moe/index.php
index d652537..9b702a6 100644
--- a/server/cn/home/www/api/www-api/moe/index.php
+++ b/server/cn/home/www/api/www-api/moe/index.php
@@ -9,6 +9,7 @@ $n_PhoneBackground = 32;
$n_loli = 120;
$n_normal = 149;
$n_star = 10;
+$n_head = 130;
$r = $_REQUEST['i'];
@@ -39,6 +40,9 @@ if(!isset($_REQUEST['k'])){
}elseif($r == "star"){
$id = mt_rand(1,$n_star);
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/acg/star/".$id.".jpg");
+ }elseif($r == "head"){
+ $id = mt_rand(1,$n_head);
+ echo file_get_contents("https://yimian-image.obs.myhwclouds.com/acg/head/".$id.".png");
}else{
$id = mt_rand(1,$n_normal);
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/acg/dmoe/".$id.".jpg");
@@ -63,6 +67,9 @@ if(!isset($_REQUEST['k'])){
}elseif($r == "star"){
$id = mt_rand(1,$n_star);
header("Location: https://yimian-image.obs.myhwclouds.com/acg/star/".$id.".jpg");
+ }elseif($r == "head"){
+ $id = mt_rand(1,$n_head);
+ header("Location: https://yimian-image.obs.myhwclouds.com/acg/head/".$id.".png");
}else{
$id = mt_rand(1,$n_loli);
header("Location: https://yimian-image.obs.myhwclouds.com/acg/fmoe/".$id.".jpg");
diff --git a/server/cn/home/www/api/www-api/moe/intro.php b/server/cn/home/www/api/www-api/moe/intro.php
index ec81235..db02b3b 100644
--- a/server/cn/home/www/api/www-api/moe/intro.php
+++ b/server/cn/home/www/api/www-api/moe/intro.php
@@ -27,7 +27,7 @@ h3:hover {box-shadow:0px 0px 8px #D1D1D1;}
# 请求地址 #
https://api.yimian.xyz/moe
# 参数 #
-