修改沟通市场
This commit is contained in:
parent
1a7dceb86b
commit
a13b55d90b
@ -1333,7 +1333,7 @@ class CallBackController extends AbstractController
|
||||
|
||||
// 获取检测订单数据
|
||||
$params = array();
|
||||
$params['detection_no'] = "D548154592174350336";
|
||||
$params['detection_no'] = "D549534850211602432";
|
||||
$order_detection = OrderDetection::getOne($params);
|
||||
if (empty($order_detection)){
|
||||
return $this->detectionResultFailReturn("非法订单");
|
||||
|
||||
@ -11,8 +11,13 @@ use Hyperf\Snowflake\Concern\Snowflake;
|
||||
|
||||
/**
|
||||
* @property int $detection_organ_id 主键id
|
||||
* @property int $company_id 合作公司id
|
||||
* @property string $detection_organ_name 检测机构名称
|
||||
* @property string $app_id key
|
||||
* @property string $app_secret 秘钥
|
||||
* @property int $status 状态(1:正常 2:删除)
|
||||
* @property string $request_dev_url 测试请求地址
|
||||
* @property string $request_prod_url 正式请求地址
|
||||
* @property \Carbon\Carbon $created_at 创建时间
|
||||
* @property \Carbon\Carbon $updated_at 修改时间
|
||||
*/
|
||||
@ -28,7 +33,7 @@ class BasicDetectionOrgan extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = ['detection_organ_id', 'detection_organ_name', 'status', 'created_at', 'updated_at'];
|
||||
protected array $fillable = ['detection_organ_id', 'company_id', 'detection_organ_name', 'app_id', 'app_secret', 'status', 'request_dev_url', 'request_prod_url', 'created_at', 'updated_at'];
|
||||
|
||||
protected string $primaryKey = "detection_organ_id";
|
||||
|
||||
|
||||
@ -766,18 +766,17 @@ class InquiryService extends BaseService
|
||||
$follow = false; // 关注状态
|
||||
$is_evaluation = false; // 评价状态
|
||||
|
||||
// 沟通次数,沟通时长
|
||||
$params = array();
|
||||
$params['inquiry_type'] = $order_inquiry['inquiry_type'];
|
||||
$params['inquiry_mode'] = $order_inquiry['inquiry_mode'];
|
||||
$system_inquiry_config = SystemInquiryConfig::getOne($params);
|
||||
if (!empty($system_inquiry_config)){
|
||||
$times_number = $system_inquiry_config['times_number'];
|
||||
$duration = $system_inquiry_config['duration'];
|
||||
}
|
||||
|
||||
if ($user_info['user_type'] == 1){
|
||||
|
||||
// 沟通次数,沟通时长
|
||||
$params = array();
|
||||
$params['inquiry_type'] = $order_inquiry['inquiry_type'];
|
||||
$params['inquiry_mode'] = $order_inquiry['inquiry_mode'];
|
||||
$system_inquiry_config = SystemInquiryConfig::getOne($params);
|
||||
if (!empty($system_inquiry_config)){
|
||||
$times_number = $system_inquiry_config['times_number'];
|
||||
$duration = $system_inquiry_config['duration'];
|
||||
}
|
||||
|
||||
// 关注状态
|
||||
$params = array();
|
||||
$params['patient_id'] = $user_info['client_user_id'];
|
||||
@ -792,8 +791,6 @@ class InquiryService extends BaseService
|
||||
$is_evaluation = OrderEvaluation::getExists($params);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$result = array();
|
||||
$result['doctor_user_id'] = $user_doctor['user_id'];
|
||||
$result['patient_user_id'] = $order_inquiry['user_id'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user