|
@@ -445,11 +445,11 @@ class Application extends Base
|
|
|
return json_encode(['status'=>'ok','code'=>'2017','msg'=> '远程机构获取失败']);
|
|
|
}
|
|
|
$res = false;
|
|
|
- if($contact['pay_type'] === 0) { //医院挂账
|
|
|
+ if($contact['pay_type'] === self::PAY_TYPE['HOSPITAL']) { //医院挂账
|
|
|
// $hospital_id, $super_hospital_id, $doctor_id, $super_doctor_id, $exam_class, $application_id, $order_money
|
|
|
$res = $this->createHospitalOrder($local_institution_id, $remote_institution_id, $req_doctor_id, $remote_doctor_id, $exam_info['exam_class'], $application['id'], $cost['money'], $is_urgent, $wechatService);
|
|
|
}
|
|
|
- if($contact['pay_type'] === 1) { // 患者支付
|
|
|
+ if($contact['pay_type'] === self::PAY_TYPE['PATIENT']) { // 患者支付
|
|
|
// var_dump(2);
|
|
|
// var_dump($wechatService);
|
|
|
// $push_res = WechatService::pushWechatOrder($param['id']);
|
|
@@ -694,7 +694,7 @@ class Application extends Base
|
|
|
"BANK" => 13
|
|
|
];
|
|
|
|
|
|
- /**支付类型 医院 微信 */
|
|
|
+ /**支付类型 微信 医院 */
|
|
|
public const PAY_TYPE = [
|
|
|
"PATIENT" => 0,
|
|
|
"HOSPITAL" => 1
|