Kaynağa Gözat

wesmiler 报恩寺项目提交

wesmiler 4 yıl önce
ebeveyn
işleme
783a93015e

+ 1 - 1
app/Http/Controllers/Api/v1/IndexController.php

@@ -192,7 +192,7 @@ class IndexController extends BaseController
         preg_match("/<td colspan=\"3\">(.*)<\/td>/", $temp1, $ji);
         preg_match("/<td colspan=\"3\">(.*)<\/td>/", $temp1, $ji);
         $ji = isset($ji[1])? $ji[1] : '';
         $ji = isset($ji[1])? $ji[1] : '';
         preg_match("/<td class=\"\">(.*)<\/td>/", $temp1, $yl);
         preg_match("/<td class=\"\">(.*)<\/td>/", $temp1, $yl);
-        $yl = isset($yl[1])? iconv('gb2312','utf-8', $yl[1]) : '';
+        $yl = isset($yl[1])? $yl[1] : '';
 
 
         return message(MESSAGE_OK, true, ['content'=> $content, 'result'=> $temp,'hl'=> $temp1,'date'=> date('m月d日'),'yl'=> $yl,'yl_day'=> mb_substr($yl, -2, 2,'utf-8'),'yi'=> $yi,'ji'=> $ji]);
         return message(MESSAGE_OK, true, ['content'=> $content, 'result'=> $temp,'hl'=> $temp1,'date'=> date('m月d日'),'yl'=> $yl,'yl_day'=> mb_substr($yl, -2, 2,'utf-8'),'yi'=> $yi,'ji'=> $ji]);