|
@@ -197,14 +197,14 @@ class Application extends Base
|
|
|
return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ /**取消订单 */
|
|
|
public function cancel(){
|
|
|
try{
|
|
|
log::record($_REQUEST);
|
|
|
$sessionid = $_REQUEST['sessionid'];
|
|
|
$doctor = Cache::get($sessionid);
|
|
|
// 远程申请权限 6
|
|
|
- $return = Verify::check_role($sessionid,6);
|
|
|
+ $return = Verify::check_role($sessionid, 6);
|
|
|
if($return != 1){
|
|
|
return json_encode(['status'=>'fail','code'=>'1029','msg'=>'没有操作权限']);
|
|
|
}
|
|
@@ -227,7 +227,7 @@ class Application extends Base
|
|
|
if($remote_order['pay_type'] === self::PAY_TYPE['HOSPITAL']) {
|
|
|
return $this->cancelHospitalOrder($order_id, $remote_order['hospital_id'], $remote_order['order_money']);
|
|
|
}
|
|
|
- if($remote_order['pay_type'] === self::PAY_TYPE['WECHAT']) {
|
|
|
+ if($remote_order['pay_type'] === self::PAY_TYPE['PATIENT']) {
|
|
|
return $this->cancelPatientsOrder($order_id, $remote_order['application_id']);
|
|
|
}
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','sessionid'=>$sessionid]);
|