|
@@ -516,7 +516,6 @@ class Application extends Base
|
|
|
$pay_way = self::PAY_WAY['WECHAT'];
|
|
|
DB::startTrans();
|
|
|
try{
|
|
|
- $order_id = UUIDs::uuid16();
|
|
|
$remote_order = DB::table('remote_order')
|
|
|
->where('application_id', $application_id)
|
|
|
->where('status', 'neq', self::ORDER_STATUS['CANCEL'])
|
|
@@ -526,6 +525,7 @@ class Application extends Base
|
|
|
DB::rollback();
|
|
|
return json_encode(['status'=>'fail','code'=>'2019','已存在订单,请勿重复发起']);
|
|
|
}
|
|
|
+ $order_id = UUIDs::uuid16();
|
|
|
DB::table('remote_order')->insert([
|
|
|
'id' => $order_id,
|
|
|
'hospital_id' => $hospital_id,
|
|
@@ -544,6 +544,7 @@ class Application extends Base
|
|
|
DB::commit();
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','oid'=>$order_id,'aid'=>$application_id]);
|
|
|
} catch (\Exception $e) {
|
|
|
+ var_dump(e);
|
|
|
DB::rollback();
|
|
|
}
|
|
|
return json_encode(['status'=>'fail','code'=>'2020','远程诊断发起失败']);
|