|
@@ -71,7 +71,7 @@ class PayHandler extends BasePayHandler
|
|
|
file_put_contents('payplat_data.txt',$tt);
|
|
file_put_contents('payplat_data.txt',$tt);
|
|
|
if (isset($data['sign']) && trim($data['sign']) !== '') {
|
|
if (isset($data['sign']) && trim($data['sign']) !== '') {
|
|
|
|
|
|
|
|
- if (PayUtils::verify($data)) {
|
|
|
|
|
|
|
+ if (PayUtils::checkSign($data)) {
|
|
|
file_put_contents('payplat_success.txt','验签成功');
|
|
file_put_contents('payplat_success.txt','验签成功');
|
|
|
if($data['payStatus'] == '1'){
|
|
if($data['payStatus'] == '1'){
|
|
|
$merOrderId = trim($data['orderNo']);
|
|
$merOrderId = trim($data['orderNo']);
|
|
@@ -105,7 +105,7 @@ class PayHandler extends BasePayHandler
|
|
|
public function outNotify($success)
|
|
public function outNotify($success)
|
|
|
{
|
|
{
|
|
|
if ($success == true) {
|
|
if ($success == true) {
|
|
|
- return success;
|
|
|
|
|
|
|
+ return 'success';
|
|
|
} else {
|
|
} else {
|
|
|
// 返回的数据格式
|
|
// 返回的数据格式
|
|
|
return "FAIL";
|
|
return "FAIL";
|
|
@@ -121,7 +121,7 @@ class PayHandler extends BasePayHandler
|
|
|
//Yii::warning('支付同步通知参数,' . VarDumper::dumpAsString($data), __METHOD__);
|
|
//Yii::warning('支付同步通知参数,' . VarDumper::dumpAsString($data), __METHOD__);
|
|
|
if (isset($data['sign']) && trim($data['sign']) !== '') {
|
|
if (isset($data['sign']) && trim($data['sign']) !== '') {
|
|
|
$data['secret'] = $this->Key;
|
|
$data['secret'] = $this->Key;
|
|
|
- if (PayUtils::verify($data)) {
|
|
|
|
|
|
|
+ if (PayUtils::checkSign($data)) {
|
|
|
if ($data['payStatus'] == '1') {
|
|
if ($data['payStatus'] == '1') {
|
|
|
$merOrderId = trim($data['orderNo']);
|
|
$merOrderId = trim($data['orderNo']);
|
|
|
$reuslt = Deposit::find()->where(['order_sn' => $merOrderId])->asArray()->limit(1)->one();
|
|
$reuslt = Deposit::find()->where(['order_sn' => $merOrderId])->asArray()->limit(1)->one();
|