|
|
@ -35,15 +35,14 @@ class NotifyController extends AbstractController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[$token, $params] = $this->getTokenAndParams($request);
|
|
|
|
[$token, $params] = $this->getTokenAndParams($request);
|
|
|
|
|
|
|
|
|
|
|
|
$token = $request->route('token');
|
|
|
|
|
|
|
|
$requestLog = $this->requestService->getRequestLogByToken($token);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$baofu = new Baofu();
|
|
|
|
$baofu = new Baofu();
|
|
|
|
if (!$baofu->notifyVerify($params, 'register')) {
|
|
|
|
if (!$baofu->notifyVerify($params, 'register')) {
|
|
|
|
Log::info('registerNotifyVerifyFail: ', $params);
|
|
|
|
Log::info('registerNotifyVerifyFail: ', $params);
|
|
|
|
return $baofu->notifySuccess();
|
|
|
|
return $baofu->notifySuccess();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$requestLog = $this->requestService->getRequestLogByToken($token);
|
|
|
|
|
|
|
|
|
|
|
|
$userId = $requestLog->getDataValue('userId');
|
|
|
|
$userId = $requestLog->getDataValue('userId');
|
|
|
|
$appId = $requestLog->app_id;
|
|
|
|
$appId = $requestLog->app_id;
|
|
|
|
$this->userService->rsyncUser($params['loginNo'], $appId, $userId);
|
|
|
|
$this->userService->rsyncUser($params['loginNo'], $appId, $userId);
|
|
|
@ -63,14 +62,14 @@ class NotifyController extends AbstractController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[$token, $params] = $this->getTokenAndParams($request);
|
|
|
|
[$token, $params] = $this->getTokenAndParams($request);
|
|
|
|
|
|
|
|
|
|
|
|
$requestLog = $this->requestService->getRequestLogByToken($token);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$baofu = new Baofu();
|
|
|
|
$baofu = new Baofu();
|
|
|
|
if (!$baofu->notifyVerify($params, 'bindCard')) {
|
|
|
|
if (!$baofu->notifyVerify($params, 'bindCard')) {
|
|
|
|
Log::info('bindCardNotifyVerifyFail: ' . $params);
|
|
|
|
Log::info('bindCardNotifyVerifyFail: ' . $params);
|
|
|
|
return $baofu->notifySuccess();
|
|
|
|
return $baofu->notifySuccess();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$requestLog = $this->requestService->getRequestLogByToken($token);
|
|
|
|
|
|
|
|
|
|
|
|
$bindCardFlag = $params['bindCardFlag'] && $params['bindCardFlag'] != 'false' ? true : false;
|
|
|
|
$bindCardFlag = $params['bindCardFlag'] && $params['bindCardFlag'] != 'false' ? true : false;
|
|
|
|
if ($bindCardFlag) {
|
|
|
|
if ($bindCardFlag) {
|
|
|
|
$this->userService->rsyncBankCards($params['loginNo']);
|
|
|
|
$this->userService->rsyncBankCards($params['loginNo']);
|
|
|
@ -92,14 +91,14 @@ class NotifyController extends AbstractController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[$token, $params] = $this->getTokenAndParams($request);
|
|
|
|
[$token, $params] = $this->getTokenAndParams($request);
|
|
|
|
|
|
|
|
|
|
|
|
$requestLog = $this->requestService->getRequestLogByToken($token);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$baofu = new Baofu();
|
|
|
|
$baofu = new Baofu();
|
|
|
|
if (!$baofu->notifyVerify($params, 'payment')) {
|
|
|
|
if (!$baofu->notifyVerify($params, 'payment')) {
|
|
|
|
Log::info('paymentNotifyVerifyFail: ' . $params);
|
|
|
|
Log::info('paymentNotifyVerifyFail: ' . $params);
|
|
|
|
return $baofu->notifySuccess();
|
|
|
|
return $baofu->notifySuccess();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$requestLog = $this->requestService->getRequestLogByToken($token);
|
|
|
|
|
|
|
|
|
|
|
|
$info = [
|
|
|
|
$info = [
|
|
|
|
'member_id' => $params['loginId'],
|
|
|
|
'member_id' => $params['loginId'],
|
|
|
|
'order_no' => $params['orderId'],
|
|
|
|
'order_no' => $params['orderId'],
|
|
|
@ -135,14 +134,14 @@ class NotifyController extends AbstractController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[$token, $params] = $this->getTokenAndParams($request);
|
|
|
|
[$token, $params] = $this->getTokenAndParams($request);
|
|
|
|
|
|
|
|
|
|
|
|
$requestLog = $this->requestService->getRequestLogByToken($token);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$baofu = new Baofu();
|
|
|
|
$baofu = new Baofu();
|
|
|
|
if (!$baofu->notifyVerify($params, 'refund')) {
|
|
|
|
if (!$baofu->notifyVerify($params, 'refund')) {
|
|
|
|
Log::info('refundNotifyVerifyFail: ' . $params);
|
|
|
|
Log::info('refundNotifyVerifyFail: ' . $params);
|
|
|
|
return $baofu->notifySuccess();
|
|
|
|
return $baofu->notifySuccess();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$requestLog = $this->requestService->getRequestLogByToken($token);
|
|
|
|
|
|
|
|
|
|
|
|
$info = [
|
|
|
|
$info = [
|
|
|
|
'refund_no' => $params['refundTradeId'],
|
|
|
|
'refund_no' => $params['refundTradeId'],
|
|
|
|
'third_refund_no' => $params['refundOrderId'],
|
|
|
|
'third_refund_no' => $params['refundOrderId'],
|
|
|
|