|
@@ -488,7 +488,7 @@ class Writereport extends Base
|
|
|
}
|
|
|
*")
|
|
|
**/
|
|
|
- public function confirm(WechatService $wechatService){
|
|
|
+ public function confirm(){
|
|
|
try{
|
|
|
Log::record('confirm');
|
|
|
$is_remote = $_REQUEST['is_remote'];
|
|
@@ -543,7 +543,7 @@ class Writereport extends Base
|
|
|
Message::read($doctor['id'],$report_info['remote_application_id'],4);
|
|
|
//远程
|
|
|
|
|
|
- $this->confirmReport($report_info['remote_application_id'], $wechatService);
|
|
|
+ $this->confirmReport($report_info['remote_application_id']);
|
|
|
// DB::table('remote_application')->where('id',$report_info['remote_application_id'])->update(['report_status'=>'9']);
|
|
|
// 添加messages消息
|
|
|
$t = '您的报告已确认';
|
|
@@ -609,7 +609,7 @@ class Writereport extends Base
|
|
|
DB::table('share')->insert($share);
|
|
|
}
|
|
|
|
|
|
- private function confirmReport($application_id, $wechatService) {
|
|
|
+ private function confirmReport($application_id) {
|
|
|
Db::startTrans();
|
|
|
try{
|
|
|
DB::table('remote_application')->where('id', $application_id)->update(['report_status'=>'9']);
|
|
@@ -656,7 +656,6 @@ class Writereport extends Base
|
|
|
]);
|
|
|
// 提交事务
|
|
|
Db::commit();
|
|
|
- $wechatService->pushWechatComplete($order_id);
|
|
|
// todo 消息推送
|
|
|
return true;
|
|
|
} catch (\Exception $e) {
|