31 lines
1.0 KiB
PHP
31 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace addon\aliapp\model;
|
|
use app\model\BaseModel;
|
|
use think\facade\Log;
|
|
|
|
class AliPayMemberCard extends BaseModel{
|
|
public function Notify($param = []){
|
|
$rsaCheck = $this->rsaCheck($param);
|
|
if ($rsaCheck && isset($param['notify_type'])) {
|
|
Log::write('支付宝回调通知-会员卡:' . $param['notify_type'] . json_encode($param, JSON_UNESCAPED_UNICODE));
|
|
switch ($param['notify_type']) {
|
|
case 'alipay.service.check':
|
|
echo 'success';
|
|
break;
|
|
case 'servicemarket_order_notify': //服务订单通知
|
|
$this->servicemarketOrderNotify($param);
|
|
break;
|
|
case 'open_app_auth_notify': //服务订单授权通知
|
|
$this->openAppAuthnotify($param);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
public function rsaCheck($param)
|
|
{
|
|
$payModel = new MinCode();
|
|
$res = $payModel->verifySgin($param);
|
|
return $res;
|
|
}
|
|
} |