修正一个由=号引起的season缓存问题 @AisukaYuki

修正一个由=号引起的season缓存问题 
Author: @AisukaYuki
pull/23/head
david082321 3 years ago committed by GitHub
commit 440bcfb5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -262,7 +262,7 @@ function write_cache_season() {
$area = "main"; //主站
}
if ($code == 0 && $area = "main") {
if ($code == 0 && $area == "main") {
// 当 code==0 缓存成 area=main
$sql = "INSERT INTO `cache` (`expired_time`,`area`,`type`,`cache_type`,`cid`,`ep_id`,`cache`) VALUES ('".$ts."','".$area."','0','season_".$cache_type."','".$ss_id."','".$ep_id."','".$output."')";
// 刷新缓存
@ -277,8 +277,8 @@ function write_cache_season() {
if ($refresh_cache_season == 1) {
$sql = "UPDATE `cache` SET `expired_time` = '".$ts."', `cache` = '".$output."' WHERE `area` = '".AREA."' AND `cache_type` = 'season_".$cache_type."' AND `cid` = '".$ss_id."' AND `ep_id` = '".$ep_id."';";
}
$dbh -> exec($sql);
}
$dbh -> exec($sql);
}
?>

Loading…
Cancel
Save