修改了首页推荐医生,去除了数量限制
This commit is contained in:
@@ -170,12 +170,10 @@ class UserDoctor extends Model
|
||||
* 2:接诊量由高到低的医生
|
||||
* 3:好评率由高到低的医生
|
||||
* 5:在线
|
||||
* 6:5个
|
||||
* @param int $limit 数量
|
||||
* @param array $fields
|
||||
* @return array|Collection|\Hyperf\Utils\Collection
|
||||
*/
|
||||
public static function getIndexRecommendDoctorLimit(int $limit = 5, array $fields = ['*']): array|Collection|\Hyperf\Utils\Collection
|
||||
public static function getIndexRecommendDoctor(array $fields = ['*']): array|Collection|\Hyperf\Utils\Collection
|
||||
{
|
||||
$params = array();
|
||||
// 状态(0:禁用 1:正常 2:删除)
|
||||
@@ -200,7 +198,6 @@ class UserDoctor extends Model
|
||||
->orderBy("is_platform_deep_cooperation", "desc")
|
||||
->orderBy("served_patients_num", "desc")
|
||||
->orderBy("praise_rate", "desc")
|
||||
->limit($limit)
|
||||
->get($fields);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user