|
@@ -406,7 +406,7 @@ class Application extends Base
|
|
|
// $message['title'] = '申请单驳回';
|
|
|
// $message['content'] = $param['description'];
|
|
|
// $message['createdAt'] = date('Y-m-d H:i:s',time());
|
|
|
- $application = DB::table('remote_application')->where('exam_id',$id)->find();
|
|
|
+ $application = DB::table('remote_application')->where('id',$id)->find();
|
|
|
// $message['doctor_id'] = $application['req_doctor_id'];
|
|
|
// $message['institution_id'] = $application['local_institution_id'];
|
|
|
DB::table('remote_application')->where('id',$id)->update(['report_status'=>5]);
|
|
@@ -414,11 +414,9 @@ class Application extends Base
|
|
|
// if($application['req_doctor_id'] == 'c44663d6d3c0b535'){
|
|
|
$dinfo = DB::table('doctors')->where('id',$application['req_doctor_id'])->find();
|
|
|
$d_phone = $dinfo['phone'];
|
|
|
- var_dump($dinfo);
|
|
|
if($dinfo['institution_id'] == '22100002' || $dinfo['send_sms'] == 1){ //魏庙下级
|
|
|
$des = mb_substr($param['description'],0,20,'utf-8');
|
|
|
$repsone = send_message::sendSms2RejectApply($d_phone,$des);
|
|
|
- var_dump($repsone);
|
|
|
}
|
|
|
$tel = '18910184804';
|
|
|
$type = '驳回申请';
|