| xqd
@@ -255,7 +255,7 @@ class PatientController extends AuthController
|
|
|
}
|
|
|
|
|
|
$axbwhere['docter_id'] = $user['id'];
|
|
|
- $axbwhere['user_id'] = $req['user_id'];
|
|
|
+ $axbwhere['user_id'] = $find['user_id'];
|
|
|
$finds = Axb::where($axbwhere)->orderBy('id', 'desc')->first();
|
|
|
|
|
|
if ($status == 1 && $finds) {
|
| xqd
@@ -424,7 +424,7 @@ class PatientController extends AuthController
|
|
|
]);
|
|
|
$data = [];
|
|
|
// 订单查询
|
|
|
- $data = Order::with(['orderPatient', 'user', 'calllog'])->where('id', $req['patient_id'])->first()->toArray();
|
|
|
+ $data = Order::with(['orderPatient', 'user', 'calllog'])->where('id', $req['patient_id'])->first();
|
|
|
|
|
|
// 通话记录查询
|
|
|
$datas = CallLog::where('order_id', $req['patient_id'])->get();
|
| xqd
@@ -436,6 +436,10 @@ class PatientController extends AuthController
|
|
|
$res_patient = [];
|
|
|
|
|
|
//电话咨询
|
|
|
+ //电话咨询
|
|
|
+ if ($data){
|
|
|
+ $data=$data->toArray();
|
|
|
+ }
|
|
|
|
|
|
if ($data['product_type'] == 1) {
|
|
|
|