...
|
...
|
@@ -437,9 +437,9 @@ class Pay extends Api |
|
|
Db::commit();
|
|
|
}
|
|
|
} catch (\Exception $e) {
|
|
|
dump($e->getMessage());
|
|
|
// 回滚事务
|
|
|
Db::rollback();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
}else{
|
...
|
...
|
@@ -451,6 +451,7 @@ class Pay extends Api |
|
|
}else{
|
|
|
return $fail('通信失败,请稍后再通知我');
|
|
|
}
|
|
|
return true;
|
|
|
});
|
|
|
$response->send();
|
|
|
}
|
...
|
...
|
@@ -494,9 +495,9 @@ class Pay extends Api |
|
|
Db::commit();
|
|
|
}
|
|
|
} catch (\Exception $e) {
|
|
|
dump($e->getMessage());
|
|
|
// 回滚事务
|
|
|
Db::rollback();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
}else{
|
...
|
...
|
@@ -507,6 +508,7 @@ class Pay extends Api |
|
|
}else{
|
|
|
return $fail('通信失败,请稍后再通知我');
|
|
|
}
|
|
|
return true;
|
|
|
});
|
|
|
$response->send();
|
|
|
}
|
...
|
...
|
|