Browse Source

no commit message

齐博 1 năm trước cách đây
mục cha
commit
80bab86ba3

+ 1 - 1
application/admin/controller/Timedtask.php

@@ -18,7 +18,7 @@ class Timedtask extends AdminBase
     protected $list_items;
     protected $tab_ext = [
         'page_title'=>'定时任务',
-        'help_msg'=>'注意:定时任务必须要配置好才能生效,<a href="http://help.php168.com/1092543" style="color:blue;" target="_blank">点击查看详细配置说明</a>',
+        'help_msg'=>'注意:定时任务必须要配置好才能生效,<a href="https://www.kancloud.cn/php168/x1_of_qibo/1092543" style="color:blue;" target="_blank">点击查看详细配置说明</a>',
     ];
     protected $types = [
         't_day'=>'每天一次',

+ 3 - 2
application/index/controller/Attachment.php

@@ -737,8 +737,9 @@ class Attachment extends IndexBase{
 		if (strstr(config( 'webdb.waterimg' ),'://')) {
 		    $thumb_water_pic = RUNTIME_PATH.'waterImg_'.md5(config( 'webdb.waterimg' )).strrchr(config( 'webdb.waterimg' ), ".");
 		    if (!is_file($thumb_water_pic)) {
-		        if(copy(config( 'webdb.waterimg' ), $thumb_water_pic) || file_put_contents($thumb_water_pic, file_get_contents(config( 'webdb.waterimg' ))) ){
-		            
+		        if(copy(config( 'webdb.waterimg' ), $thumb_water_pic)){
+		        }elseif($string = file_get_contents(config( 'webdb.waterimg' ))){
+		            file_put_contents($thumb_water_pic, $string);
 		        }else{
 		            return;
 		        }