From 596e516347e9958fd12639295ac10339b817fbce Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 24 Nov 2020 15:40:24 +0800 Subject: [PATCH] Update NewsService.php --- app/data/service/NewsService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/data/service/NewsService.php b/app/data/service/NewsService.php index e1510df46..7def22792 100644 --- a/app/data/service/NewsService.php +++ b/app/data/service/NewsService.php @@ -13,10 +13,10 @@ class NewsService extends Service { /** * 同步文章数据统计 - * @param integer $code 文章编号 + * @param string $code 文章编号 * @throws \think\db\exception\DbException */ - public function syncNewsTotal(int $code): void + public function syncNewsTotal(string $code): void { [$map, $total] = [['code' => $code], []]; $query = $this->app->db->name('DataNewsXCollect')->field('count(1) count,type');