mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-24 23:59:16 +08:00
Update NewsService.php
This commit is contained in:
parent
6fc60bd054
commit
596e516347
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user