<?php

namespace app\common\pay;
use think\Request;
use app\common\PYFPay;

class PYFwxpay extends PYFPay
{
    public function get_bankid()
    {
        return 'wxpay';
    }

    public function get_content_type()
    {
        return 2;//2为地址
    }

    public function get_result_url()
    {
        return Request::instance()->domain().'/pay/page/PYFwxpay';
    }

    public function get_notify_url()
    {
        return Request::instance()->domain().'/pay/notify/PYFwxpay';
    }

    public function page_callback($params,$order, $type = '')
    {
        parent::page_callback($params,$order, 'PYFwxpay');
    }

    public function notify_callback($params,$order, $type = '')
    {
        return parent::notify_callback($params,$order, 'PYFwxpay');
    }

}