|
@@ -73,7 +73,7 @@ class Wechat extends Base {
|
|
|
DB::table("remote_order")->where("id", $out_trade_no)->update($order);
|
|
|
$application = DB::table('remote_application')->where('id', $aid)->field('exam_id')->find();
|
|
|
$exam_id = $application['exam_id'];
|
|
|
- $r_info = DB::table('report')->where('exam_id',$exam_id)->where('id, remote_application_id', $aid)->find();
|
|
|
+ $r_info = DB::table('report')->where('exam_id',$exam_id)->where('remote_application_id', $aid)->field('id')->find();
|
|
|
$t = '收到一条远程诊断申请';
|
|
|
$ins = DB::table('institution')->where('id',$order['hospital_id'])->field('name')->find();
|
|
|
$doctor = DB::table('doctors')->where('id',$order['doctor_id'])->field('realname')->find();
|
|
@@ -87,7 +87,7 @@ class Wechat extends Base {
|
|
|
Log::record('---微信支付回调---结束---没有远程医生');
|
|
|
return $repsone;
|
|
|
}
|
|
|
- $dinfo = DB::table('doctors')->where('id, institution_id, send_sms',$d)->find();
|
|
|
+ $dinfo = DB::table('doctors')->where('id',$d)->find();
|
|
|
$d_phone = $dinfo['phone'];
|
|
|
$d_name = $dinfo['realname'];
|
|
|
if($order['is_urgent'] === 1) {
|