作者 lyh

gx

... ... @@ -20,7 +20,6 @@ class Product extends Base
const STATUS_ON = 1;
public static function getNumByProjectId($project_id){
ProjectServer::useProject($project_id);
DB::connection('custom_mysql');
return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
return DB::connection('custom_mysql')->where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
}
}
... ...