|
|
@ -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,13 +62,13 @@ 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) {
|
|
|
@ -91,14 +90,14 @@ class NotifyController extends AbstractController
|
|
|
|
public function payment(RequestInterface $request)
|
|
|
|
public function payment(RequestInterface $request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[$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'],
|
|
|
@ -135,13 +134,13 @@ 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'],
|
|
|
|