Files
littleTiger/plugins/payment/weixin/app_notify/Wxpay/WxPayShortUrl.class.php
2019-02-28 19:48:21 +08:00

117 lines
2.2 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
//namespace Vendor\Wxpay;
require_once "WxPayDataBase.class.php";
/**
*
* 短链转换输入对象
* @author widyhu
*
*/
class WxPayShortUrl extends WxPayDataBase
{
/**
* 设置微信分配的公众账号ID
* @param string $value
**/
public function SetAppid($value)
{
$this->values['appid'] = $value;
}
/**
* 获取微信分配的公众账号ID的值
* @return 值
**/
public function GetAppid()
{
return $this->values['appid'];
}
/**
* 判断微信分配的公众账号ID是否存在
* @return true 或 false
**/
public function IsAppidSet()
{
return array_key_exists('appid', $this->values);
}
/**
* 设置微信支付分配的商户号
* @param string $value
**/
public function SetMch_id($value)
{
$this->values['mch_id'] = $value;
}
/**
* 获取微信支付分配的商户号的值
* @return 值
**/
public function GetMch_id()
{
return $this->values['mch_id'];
}
/**
* 判断微信支付分配的商户号是否存在
* @return true 或 false
**/
public function IsMch_idSet()
{
return array_key_exists('mch_id', $this->values);
}
/**
* 设置需要转换的URL签名用原串传输需URL encode
* @param string $value
**/
public function SetLong_url($value)
{
$this->values['long_url'] = $value;
}
/**
* 获取需要转换的URL签名用原串传输需URL encode的值
* @return 值
**/
public function GetLong_url()
{
return $this->values['long_url'];
}
/**
* 判断需要转换的URL签名用原串传输需URL encode是否存在
* @return true 或 false
**/
public function IsLong_urlSet()
{
return array_key_exists('long_url', $this->values);
}
/**
* 设置随机字符串不长于32位。推荐随机数生成算法
* @param string $value
**/
public function SetNonce_str($value)
{
$this->values['nonce_str'] = $value;
}
/**
* 获取随机字符串不长于32位。推荐随机数生成算法的值
* @return 值
**/
public function GetNonce_str()
{
return $this->values['nonce_str'];
}
/**
* 判断随机字符串不长于32位。推荐随机数生成算法是否存在
* @return true 或 false
**/
public function IsNonce_strSet()
{
return array_key_exists('nonce_str', $this->values);
}
}
?>