新增物流回调,新增删除常用语
This commit is contained in:
@@ -590,7 +590,7 @@ class UserDoctorService extends BaseService
|
||||
foreach ($basic_words as $item) {
|
||||
$data = array();
|
||||
$data['words'] = $item['basics_words'];
|
||||
|
||||
$data['is_system'] = 1;
|
||||
$result[] = $data;
|
||||
}
|
||||
}
|
||||
@@ -605,7 +605,7 @@ class UserDoctorService extends BaseService
|
||||
foreach ($doctor_words as $item) {
|
||||
$data = array();
|
||||
$data['words'] = $item['words'];
|
||||
|
||||
$data['is_system'] = 0;
|
||||
$result[] = $data;
|
||||
}
|
||||
}
|
||||
@@ -653,6 +653,33 @@ class UserDoctorService extends BaseService
|
||||
return success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除常用语
|
||||
* @return array
|
||||
*/
|
||||
public function deleteDoctorWords(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$words = $this->request->input('words');
|
||||
$words_type = $this->request->input('words_type');
|
||||
|
||||
// 查询是否重复
|
||||
$params = array();
|
||||
$params['doctor_id'] = $user_info['client_user_id'];
|
||||
$params['words_type'] = $words_type;
|
||||
$params['words'] = $words;
|
||||
$doctor_words = DoctorWord::getOne($params);
|
||||
if (empty($doctor_words)) {
|
||||
return fail();
|
||||
}
|
||||
|
||||
$params = array();
|
||||
$params['doctor_words_id'] = $doctor_words['doctor_words_id'];
|
||||
DoctorWord::deleteDoctorWord($params);
|
||||
return success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取医生评价
|
||||
* @return array
|
||||
|
||||
Reference in New Issue
Block a user