修改开具处方:增加回滚。删除无用log记录,修改处方图片位置
This commit is contained in:
@@ -1402,6 +1402,7 @@ class UserDoctorService extends BaseService
|
||||
$params['product_id'] = $item['product_id'];
|
||||
$product = Product::getOne($params);
|
||||
if (empty($product)){
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::SERVER_ERROR,"商品错误");
|
||||
}
|
||||
|
||||
@@ -1521,7 +1522,7 @@ class UserDoctorService extends BaseService
|
||||
}
|
||||
|
||||
Db::commit();
|
||||
} catch (\Exception $e) {
|
||||
} catch (\Throwable $e) {
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::SERVER_ERROR, $e->getMessage());
|
||||
}
|
||||
@@ -1530,7 +1531,7 @@ class UserDoctorService extends BaseService
|
||||
// 发送消息-药师审核中
|
||||
$ImService = new ImService();
|
||||
$ImService->pharmacistVerify($order_inquiry,(string)$order_prescription->order_prescription_id,$product_name,$user_doctor['user_id'],$order_inquiry['user_id']);
|
||||
}catch (\Exception $e){
|
||||
}catch (\Throwable $e){
|
||||
return success([],HttpEnumCode::HTTP_SUCCESS,"消息发送失败");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user