正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
| @@ -44,8 +44,7 @@ class APublicModel extends Base | @@ -44,8 +44,7 @@ class APublicModel extends Base | ||
| 44 | ->where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); | 44 | ->where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); |
| 45 | //获取项目的询盘数量 | 45 | //获取项目的询盘数量 |
| 46 | $inquiryNumber = 0; | 46 | $inquiryNumber = 0; |
| 47 | -// $countInfo = DB::table('gl_count')->where('project_id', $project_id)->orderBy('id', 'desc') | ||
| 48 | -// ->first(); | 47 | + $countInfo = DB::table('gl_count')->where('project_id', $project_id)->orderBy('id', 'desc')->first(); |
| 49 | // if(!empty($countInfo)){ | 48 | // if(!empty($countInfo)){ |
| 50 | // @file_put_contents(storage_path('logs/lyh_error.log'), var_export($countInfo, true) . PHP_EOL, FILE_APPEND); | 49 | // @file_put_contents(storage_path('logs/lyh_error.log'), var_export($countInfo, true) . PHP_EOL, FILE_APPEND); |
| 51 | // $inquiryNumber = $countInfo['inquiry_num'] ?? 0; | 50 | // $inquiryNumber = $countInfo['inquiry_num'] ?? 0; |
| @@ -56,5 +55,4 @@ class APublicModel extends Base | @@ -56,5 +55,4 @@ class APublicModel extends Base | ||
| 56 | DB::disconnect('custom_mysql'); | 55 | DB::disconnect('custom_mysql'); |
| 57 | return $data; | 56 | return $data; |
| 58 | } | 57 | } |
| 59 | - | ||
| 60 | } | 58 | } |
-
请 注册 或 登录 后发表评论