├── .gitattributes
├── extend
└── alipay
│ ├── pay
│ ├── lotusphp_runtime
│ │ ├── Session
│ │ │ ├── Store
│ │ │ │ ├── SessionStoreFile.php
│ │ │ │ ├── SessionStoreMemcache.php
│ │ │ │ └── SessionStoreMysql.php
│ │ │ ├── SessionStore
│ │ │ └── Session.php
│ │ ├── DB
│ │ │ ├── QueryEngine
│ │ │ │ ├── TableDataGateway
│ │ │ │ │ ├── DbTableRelation.php
│ │ │ │ │ └── DbWhereCondition.php
│ │ │ │ └── SqlMap
│ │ │ │ │ ├── AbstractDbSqlMapFilterObject.php
│ │ │ │ │ ├── DbSqlMapClient.php
│ │ │ │ │ └── DbSqlMapResultFactory.php
│ │ │ ├── DbSqlExpression.php
│ │ │ ├── Adapter
│ │ │ │ ├── ConnectionAdapter
│ │ │ │ │ ├── DbConnectionAdapter.php
│ │ │ │ │ ├── DbConnectionAdapterMysqli.php
│ │ │ │ │ ├── DbConnectionAdapterMysql.php
│ │ │ │ │ ├── DbConnectionAdapterPgsql.php
│ │ │ │ │ ├── DbConnectionAdapterSqlite.php
│ │ │ │ │ └── DbConnectionAdapterPdo.php
│ │ │ │ └── SqlAdapter
│ │ │ │ │ ├── DbSqlAdapter.php
│ │ │ │ │ ├── DbSqlAdapterPgsql.php
│ │ │ │ │ └── DbSqlAdapterMysql.php
│ │ │ ├── DbAdapterFactory.php
│ │ │ └── Db.php
│ │ ├── shortcut.php
│ │ ├── Captcha
│ │ │ ├── fonts
│ │ │ │ ├── Jura.ttf
│ │ │ │ ├── Candice.ttf
│ │ │ │ ├── Duality.ttf
│ │ │ │ ├── StayPuft.ttf
│ │ │ │ ├── AntykwaBold.ttf
│ │ │ │ ├── VeraSansBold.ttf
│ │ │ │ ├── Ding-DongDaddyO.ttf
│ │ │ │ └── TimesNewRomanBold.ttf
│ │ │ └── Captcha.php
│ │ ├── Store.php
│ │ ├── Cache
│ │ │ ├── CacheAdapterFactory.php
│ │ │ ├── Adapter
│ │ │ │ ├── CacheAdapter.php
│ │ │ │ ├── CacheAdapterApc.php
│ │ │ │ ├── CacheAdapterMemcache.php
│ │ │ │ ├── CacheAdapterXcache.php
│ │ │ │ ├── CacheAdapterMemcached.php
│ │ │ │ ├── CacheAdapterEAccelerator.php
│ │ │ │ ├── CacheAdapterPhps.php
│ │ │ │ └── CacheAdapterFile.php
│ │ │ ├── QueryEngine
│ │ │ │ └── TableDataGateway
│ │ │ │ │ └── CacheTableDataGateway.php
│ │ │ ├── CacheConfigBuilder.php
│ │ │ ├── CacheHandle.php
│ │ │ ├── CacheConnectionManager.php
│ │ │ └── Cache.php
│ │ ├── ConfigExpression.php
│ │ ├── MVC
│ │ │ ├── View.php
│ │ │ ├── Context.php
│ │ │ └── Dispatcher.php
│ │ ├── Validator
│ │ │ └── ValidatorDtd.php
│ │ ├── Inflector
│ │ │ └── Inflector.php
│ │ ├── ObjectUtil
│ │ │ └── ObjectUtil.php
│ │ ├── StoreMemory.php
│ │ ├── Logger
│ │ │ └── Logger.php
│ │ ├── RBAC
│ │ │ └── Rbac.php
│ │ └── Config.php
│ ├── aop
│ │ ├── .DS_Store
│ │ ├── SignData.php
│ │ ├── EncryptResponseData.php
│ │ ├── EncryptParseItem.php
│ │ ├── AopEncrypt.php
│ │ ├── request
│ │ │ ├── AlipayUserInfoShareRequest.php
│ │ │ ├── AlipayPointBudgetGetRequest.php
│ │ │ ├── AlipayUserAccountGetRequest.php
│ │ │ ├── AlipayPointBalanceGetRequest.php
│ │ │ ├── AlipayTrustUserScoreGetRequest.php
│ │ │ ├── AlipayUserUserinfoShareRequest.php
│ │ │ ├── KoubeiMemberRetailerQueryRequest.php
│ │ │ ├── AlipayMobilePublicMenuGetRequest.php
│ │ │ ├── AlipayOpenPublicInfoQueryRequest.php
│ │ │ ├── AlipayOpenPublicLabelQueryRequest.php
│ │ │ ├── AlipayOpenPublicMenuQueryRequest.php
│ │ │ ├── AlipayAssetPointBudgetQueryRequest.php
│ │ │ ├── AlipayDataDataserviceSdfsdfRequest.php
│ │ │ ├── AlipayEbppMerchantConfigGetRequest.php
│ │ │ ├── AlipayMobilePublicInfoQueryRequest.php
│ │ │ ├── AlipayMobilePublicMenuQueryRequest.php
│ │ │ ├── KoubeiItemExtitemBrandQueryRequest.php
│ │ │ ├── AlipayAssetPointBalanceQueryRequest.php
│ │ │ ├── AlipayMobileStdPublicMenuQueryRequest.php
│ │ │ ├── AlipayOfflineMaterialImageQueryRequest.php
│ │ │ ├── KoubeiMemberBrandownerNameQueryRequest.php
│ │ │ ├── AlipayOfflineMaterialImageModifyRequest.php
│ │ │ ├── KoubeiMarketingCampaignTagsQueryRequest.php
│ │ │ ├── AlipayOfflineMarketShopAlbumBindRequest.php
│ │ │ ├── AlipayOfflineMarketShopAlbumQueryRequest.php
│ │ │ ├── AlipayOfflineMarketShopAlbumCreateRequest.php
│ │ │ ├── AlipayOfflineMarketShopAlbumDeleteRequest.php
│ │ │ ├── AlipayOfflineMarketShopAlbumModifyRequest.php
│ │ │ ├── AlipayOfflineMarketShopAlbumUnbindRequest.php
│ │ │ ├── AlipayOpenServicemarketOrderNotifyRequest.php
│ │ │ ├── AlipayMobilePublicContactFollowListRequest.php
│ │ │ ├── AlipayOfflineMarketProductUsedetailRequest.php
│ │ │ ├── AlipayCommerceEducateStudentinfoShareRequest.php
│ │ │ ├── AlipayCommerceCityfacilitatorCityQueryRequest.php
│ │ │ ├── KoubeiMarketingDataCustomtagBatchqueryRequest.php
│ │ │ ├── AlipayOpenPublicContactFollowBatchqueryRequest.php
│ │ │ ├── AlipayOpenPublicMultimediaDownloadProxyRequest.php
│ │ │ ├── AlipayCommerceTransportOfflinepayKeyQueryRequest.php
│ │ │ ├── KoubeiMarketingDataSmartmanagementDiagnoseRequest.php
│ │ │ ├── AlipayAppTokenGetRequest.php
│ │ │ ├── AlipayUserTestRequest.php
│ │ │ ├── AlipayZmscoreZrankGetRequest.php
│ │ │ ├── KoubeiItemStateRequest.php
│ │ │ ├── KoubeiItemCreateRequest.php
│ │ │ ├── KoubeiItemModifyRequest.php
│ │ │ ├── AlipayMobileCodeQueryRequest.php
│ │ │ ├── AlipayTradeCloseRequest.php
│ │ │ ├── AlipayTradeAppPayRequest.php
│ │ │ ├── AlipayTradeCancelRequest.php
│ │ │ ├── AlipayTradeRefundRequest.php
│ │ │ ├── AlipayTradeWapPayRequest.php
│ │ │ ├── AlipayUserInfoAuthRequest.php
│ │ │ ├── AlipayTradeCreateRequest.php
│ │ │ ├── AlipayTradePagePayRequest.php
│ │ │ ├── KoubeiItemBatchqueryRequest.php
│ │ │ └── KoubeiTradeItemBuyRequest.php
│ │ └── AlipayMobilePublicMultiMediaExecute.php
│ ├── AopSdk.php
│ └── buildermodel
│ │ ├── AlipayTradeQueryContentBuilder.php
│ │ ├── AlipayDataDataserviceBillDownloadurlQueryContentBuilder.php
│ │ ├── AlipayTradeCloseContentBuilder.php
│ │ ├── AlipayTradeFastpayRefundQueryContentBuilder.php
│ │ └── AlipayTradeRefundContentBuilder.php
│ ├── Query.php
│ ├── Close.php
│ ├── Notify.php
│ ├── Wappay.php
│ └── Pagepay.php
├── application
├── extra
│ └── alipay.php
├── example
│ └── controller
│ │ └── Notify.php
└── common
│ └── controller
│ └── NotifyHandler.php
└── README.md
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Session/Store/SessionStoreFile.php:
--------------------------------------------------------------------------------
1 | _expression = (string) $string;
9 | }
10 |
11 | public function __toString()
12 | {
13 | return (string) $this->_expression;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Session/SessionStore:
--------------------------------------------------------------------------------
1 | _expression = (string) $string;
10 | $this->autoRetrived = $autoRetrived;
11 | }
12 |
13 | public function __toString()
14 | {
15 | return $this->_expression;
16 | }
17 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/Adapter/CacheAdapter.php:
--------------------------------------------------------------------------------
1 | configHandle->get($this->dbh->group . "." . $mapId);
10 | $forceUseMaster = isset($sqlMap["force_use_master"]) ? $sqlMap["force_use_master"] : false;
11 | return $this->dbh->query($sqlMap["sql"], $bind, $forceUseMaster);
12 | }
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/MVC/View.php:
--------------------------------------------------------------------------------
1 | layout))
18 | {
19 | include($this->layoutDir . $this->layout . '.php');
20 | }
21 | else
22 | {
23 | include($this->templateDir . $this->template . '.php');
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/QueryEngine/SqlMap/DbSqlMapResultFactory.php:
--------------------------------------------------------------------------------
1 | label = $label;
11 | foreach($rules as $key => $rule)
12 | {
13 | $this->rules[$key] = $rule;
14 | }
15 | if ($messages)
16 | {
17 | foreach($messages as $key => $message)
18 | {
19 | $this->messages[$key] = $message;
20 | }
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Inflector/Inflector.php:
--------------------------------------------------------------------------------
1 | "_");
5 |
6 | public function camelize($uncamelized_words)
7 | {
8 | $uncamelized_words = $this->conf["separator"] . str_replace($this->conf["separator"] , " ", strtolower($uncamelized_words));
9 | return ltrim(str_replace(" ", "", ucwords($uncamelized_words)), $this->conf["separator"] );
10 | }
11 |
12 | public function uncamelize($camelCaps)
13 | {
14 | return strtolower(preg_replace('/([a-z])([A-Z])/', "$1" . $this->conf["separator"] . "$2", $camelCaps));
15 | }
16 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/QueryEngine/TableDataGateway/CacheTableDataGateway.php:
--------------------------------------------------------------------------------
1 | ch->add($key, $value, $ttl, $this->tableName);
11 | }
12 |
13 | public function del($key)
14 | {
15 | return $this->ch->del($key, $this->tableName);
16 | }
17 |
18 | public function get($key)
19 | {
20 | return $this->ch->get($key, $this->tableName);
21 | }
22 |
23 | public function update($key, $value, $ttl = 0)
24 | {
25 | return $this->ch->update($key, $value, $ttl, $this->tableName);
26 | }
27 | }
--------------------------------------------------------------------------------
/application/extra/alipay.php:
--------------------------------------------------------------------------------
1 | "",
9 |
10 | //商户私钥, 请把生成的私钥文件中字符串拷贝在此
11 | 'merchant_private_key' => "",
12 |
13 | //异步通知地址
14 | 'notify_url' => "",
15 |
16 | //同步跳转
17 | 'return_url' => "",
18 |
19 | //编码格式
20 | 'charset' => "UTF-8",
21 |
22 | //签名方式
23 | 'sign_type'=>"RSA2",
24 |
25 | //支付宝网关
26 | 'gatewayUrl' => "https://openapi.alipay.com/gateway.do",
27 |
28 | //支付宝公钥,查看地址:https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
29 | 'alipay_public_key' => "",
30 | ];
31 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/ObjectUtil/ObjectUtil.php:
--------------------------------------------------------------------------------
1 | init();
24 | }
25 | self::$instances[$key] = $newInstance;
26 | return $newInstance;
27 | }
28 | else
29 | {
30 | return false;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/Adapter/SqlAdapter/DbSqlAdapter.php:
--------------------------------------------------------------------------------
1 | query($sql);
12 | return $connResource->affected_rows;
13 | }
14 |
15 | public function query($sql, $connResource)
16 | {
17 | $rows = array();
18 | $result = $connResource->query($sql);
19 | while($row = $result->fetch_assoc())
20 | {
21 | $rows[] = $row;
22 | }
23 | return $rows;
24 | }
25 |
26 | public function lastInsertId($connResource)
27 | {
28 | return $connResource->insert_id;
29 | }
30 |
31 | public function escape($sql, $connResource)
32 | {
33 | return mysqli_real_escape_string($connResource, $sql);
34 | }
35 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/StoreMemory.php:
--------------------------------------------------------------------------------
1 | stack[$key]))
9 | {
10 | return false;
11 | }
12 | else
13 | {
14 | $this->stack[$key] = $value;
15 | return true;
16 | }
17 | }
18 |
19 | public function del($key)
20 | {
21 | if (isset($this->stack[$key]))
22 | {
23 | unset($this->stack[$key]);
24 | return true;
25 | }
26 | else
27 | {
28 | return false;
29 | }
30 | }
31 |
32 | public function get($key)
33 | {
34 | return isset($this->stack[$key]) ? $this->stack[$key] : false;
35 | }
36 |
37 | /**
38 | * key不存在返回false
39 | *
40 | * @return bool
41 | */
42 | public function update($key, $value)
43 | {
44 | if (!isset($this->stack[$key]))
45 | {
46 | return false;
47 | }
48 | else
49 | {
50 | $this->stack[$key] = $value;
51 | return true;
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Logger/Logger.php:
--------------------------------------------------------------------------------
1 | "\t",
6 | "log_file" => ""
7 | );
8 |
9 | private $fileHandle;
10 |
11 | protected function getFileHandle()
12 | {
13 | if (null === $this->fileHandle)
14 | {
15 | if (empty($this->conf["log_file"]))
16 | {
17 | trigger_error("no log file spcified.");
18 | }
19 | $logDir = dirname($this->conf["log_file"]);
20 | if (!is_dir($logDir))
21 | {
22 | mkdir($logDir, 0777, true);
23 | }
24 | $this->fileHandle = fopen($this->conf["log_file"], "a");
25 | }
26 | return $this->fileHandle;
27 | }
28 |
29 | public function log($logData)
30 | {
31 | if ("" == $logData || array() == $logData)
32 | {
33 | return false;
34 | }
35 | if (is_array($logData))
36 | {
37 | $logData = implode($this->conf["separator"], $logData);
38 | }
39 | $logData = $logData. "\n";
40 | fwrite($this->getFileHandle(), $logData);
41 | }
42 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterMysql.php:
--------------------------------------------------------------------------------
1 | getRealKey($tableName, $key), $value, $ttl);
12 | }
13 |
14 | public function del($key, $tableName, $connectionResource)
15 | {
16 | return apc_delete($this->getRealKey($tableName, $key));
17 | }
18 |
19 | public function get($key, $tableName, $connectionResource)
20 | {
21 | return apc_fetch($this->getRealKey($tableName, $key));
22 | }
23 |
24 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource)
25 | {
26 | if ($this->del($key, $tableName, $connectionResource))
27 | {
28 | return $this->add($key, $value, $ttl, $tableName, $connectionResource);
29 | }
30 | else
31 | {
32 | return false;
33 | }
34 | }
35 |
36 | protected function getRealKey($tableName, $key)
37 | {
38 | return $tableName . "-" . $key;
39 | }
40 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/Adapter/CacheAdapterMemcache.php:
--------------------------------------------------------------------------------
1 | add($this->getRealKey($tableName, $key), $value, false, $ttl);
12 | }
13 |
14 | public function del($key, $tableName, $connectionResource)
15 | {
16 | return $connectionResource->delete($this->getRealKey($tableName, $key), 0);
17 | }
18 |
19 | public function get($key, $tableName, $connectionResource)
20 | {
21 | return $connectionResource->get($this->getRealKey($tableName, $key));
22 | }
23 |
24 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource)
25 | {
26 | return $connectionResource->replace($this->getRealKey($tableName, $key), $value, false, $ttl);
27 | }
28 |
29 | protected function getRealKey($tableName, $key)
30 | {
31 | return $tableName . "-" . $key;
32 | }
33 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/AopSdk.php:
--------------------------------------------------------------------------------
1 | option["autoload_dir"] = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'aop';
41 | $lotus->devMode = AOP_SDK_DEV_MODE;
42 | $lotus->defaultStoreDir = AOP_SDK_WORK_DIR;
43 | $lotus->init();
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/Adapter/CacheAdapterXcache.php:
--------------------------------------------------------------------------------
1 | getRealKey($tableName, $key), $value, $ttl);
12 | }
13 |
14 | public function del($key, $tableName, $connectionResource)
15 | {
16 | return xcache_unset($this->getRealKey($tableName, $key));
17 | }
18 |
19 | public function get($key, $tableName, $connectionResource)
20 | {
21 | $key = $this->getRealKey($tableName, $key);
22 | if (xcache_isset($key))
23 | {
24 | return xcache_get($key);
25 | }
26 | return false;
27 | }
28 |
29 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource)
30 | {
31 | $key = $this->getRealKey($tableName, $key);
32 | if (xcache_isset($key))
33 | {
34 | return xcache_set($key, $value, $ttl);
35 | }
36 | return false;
37 | }
38 |
39 | protected function getRealKey($tableName, $key)
40 | {
41 | return $tableName . "-" . $key;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/Adapter/CacheAdapterMemcached.php:
--------------------------------------------------------------------------------
1 | addServer($hostConf["host"], $hostConf["port"]);
8 | return $connectionResource;
9 | }
10 |
11 | public function add($key, $value, $ttl=0, $tableName, $connectionResource)
12 | {
13 | return $connectionResource->add($this->getRealKey($tableName, $key), $value, $ttl);
14 | }
15 |
16 | public function del($key, $tableName, $connectionResource)
17 | {
18 | return $connectionResource->delete($this->getRealKey($tableName, $key));
19 | }
20 |
21 | public function get($key, $tableName, $connectionResource)
22 | {
23 | return $connectionResource->get($this->getRealKey($tableName, $key));
24 | }
25 |
26 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource)
27 | {
28 | return $connectionResource->replace($this->getRealKey($tableName, $key), $value, $ttl);
29 | }
30 |
31 | protected function getRealKey($tableName, $key)
32 | {
33 | return $tableName . "-" . $key;
34 | }
35 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ThinkPHP5 电脑与手机支付扩展库(2017年9月18日)
2 |
3 | ## 使用说明
4 | - 在默认配置情况下,将文件夹拷贝到根目录即可, 其中extend目录为支付扩展目录, application\extra\alipay.php为配置文件
5 | - 需要在配置文件application\extra\alipay.php中填写必要的参数
6 |
7 | ## 注意
8 | 错误采用抛出异常的方式, 可根据自己的业务在统一接口进行修改
9 |
10 | ## 用法
11 | #### 电脑网站支付 Pagepay.php
12 | 调用 \alipay\Pagepay::pay($params) 即可
13 |
14 | #### 手机网站支付 Wappay.php
15 | 调用 \alipay\Wappay::pay($params) 即可
16 |
17 | #### 交易查询接口 Query.php
18 | 调用 \alipay\Query::exec($query_no) 即可
19 |
20 | #### 交易退款接口 Refund.php
21 | 调用 \alipay\Refund::exec($params) 即可
22 |
23 | #### 退款统一订单查询 RefundQuery.php
24 | 调用 \alipay\RefundQuery::exec($params) 即可
25 |
26 | #### 交易关闭接口 Close.php
27 | 调用 \alipay\Close::exec($query_no) 即可
28 |
29 | #### 查询账单下载地址接口 Datadownload.php
30 | 调用 \alipay\Datadownload::exec($bill_type, $bill_date) 即可
31 |
32 | #### 验签 Notify.php
33 | 调用 \alipay\Notify::check($params) 即可
34 |
35 | #### 通知处理步骤建议
36 | 1. 验签
37 | 2. 判断订单状态
38 | 3. 进行业务操作
39 |
40 | ###### 一下两个类仅为建议, 帮助理解, 可根据具体业务进行变更, 详细理解可参考[官方文档和SDK](https://docs.open.alipay.com/270/105902/)
41 | - application\common\NotifyHandler.php 通知操作的处理类
42 | - application\example\Notify.php 具体实现
43 |
--------------------------------------------------------------------------------
/extend/alipay/pay/buildermodel/AlipayTradeQueryContentBuilder.php:
--------------------------------------------------------------------------------
1 | bizContentarr)){
27 | $this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
28 | }
29 | return $this->bizContent;
30 | }
31 |
32 | public function getTradeNo()
33 | {
34 | return $this->tradeNo;
35 | }
36 |
37 | public function setTradeNo($tradeNo)
38 | {
39 | $this->tradeNo = $tradeNo;
40 | $this->bizContentarr['trade_no'] = $tradeNo;
41 | }
42 |
43 | public function getOutTradeNo()
44 | {
45 | return $this->outTradeNo;
46 | }
47 |
48 | public function setOutTradeNo($outTradeNo)
49 | {
50 | $this->outTradeNo = $outTradeNo;
51 | $this->bizContentarr['out_trade_no'] = $outTradeNo;
52 | }
53 | }
54 |
55 | ?>
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/Adapter/CacheAdapterEAccelerator.php:
--------------------------------------------------------------------------------
1 | getRealKey($tableName, $key), $value, $ttl);
13 | }
14 |
15 | public function del($key, $tableName, $connectionResource)
16 | {
17 | return eaccelerator_rm($this->getRealKey($tableName, $key));
18 | }
19 |
20 | public function get($key, $tableName, $connectionResource)
21 | {
22 | $value = eaccelerator_get($this->getRealKey($tableName, $key));
23 | if (!empty($value))
24 | {
25 | return unserialize($value);
26 | }
27 | else
28 | {
29 | return false;
30 | }
31 | }
32 |
33 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource)
34 | {
35 | if ($this->del($key, $tableName, $connectionResource))
36 | {
37 | return $this->add($key, $value, $ttl, $tableName, $connectionResource);
38 | }
39 | else
40 | {
41 | return false;
42 | }
43 | }
44 |
45 | protected function getRealKey($tableName, $key)
46 | {
47 | return $tableName . "-" . $key;
48 | }
49 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/buildermodel/AlipayDataDataserviceBillDownloadurlQueryContentBuilder.php:
--------------------------------------------------------------------------------
1 | bizContentarr)){
27 | $this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
28 | }
29 | return $this->bizContent;
30 | }
31 |
32 | public function getBillType()
33 | {
34 | return $this->billType;
35 | }
36 |
37 | public function setBillType($billType)
38 | {
39 | $this->billType = $billType;
40 | $this->bizContentarr['bill_type'] = $billType;
41 | }
42 |
43 | public function getBillDate()
44 | {
45 | return $this->billDate;
46 | }
47 |
48 | public function setBillDate($billDate)
49 | {
50 | $this->billDate = $billDate;
51 | $this->bizContentarr['bill_date'] = $billDate;
52 | }
53 | }
54 |
55 | ?>
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterPgsql.php:
--------------------------------------------------------------------------------
1 | configHandle instanceof LtConfig)
10 | {
11 | if (class_exists("LtObjectUtil", false))
12 | {
13 | $this->configHandle = LtObjectUtil::singleton("LtConfig");
14 | }
15 | else
16 | {
17 | $this->configHandle = new LtConfig;
18 | }
19 | }
20 | }
21 |
22 | public function init()
23 | {
24 | if(!$sessionSavePath = $this->configHandle->get("session.save_path"))
25 | {
26 | $sessionSavePath = '/tmp/Lotus/session/';
27 | }
28 | if (!is_object($this->storeHandle))
29 | {
30 | ini_set('session.save_handler', 'files');
31 | if (!is_dir($sessionSavePath))
32 | {
33 | if (!@mkdir($sessionSavePath, 0777, true))
34 | {
35 | trigger_error("Can not create $sessionSavePath");
36 | }
37 | }
38 | session_save_path($sessionSavePath);
39 | }
40 | else
41 | {
42 | $this->storeHandle->conf = $this->configHandle->get("session.conf");
43 | $this->storeHandle->init();
44 | session_set_save_handler(
45 | array(&$this->storeHandle, 'open'),
46 | array(&$this->storeHandle, 'close'),
47 | array(&$this->storeHandle, 'read'),
48 | array(&$this->storeHandle, 'write'),
49 | array(&$this->storeHandle, 'destroy'),
50 | array(&$this->storeHandle, 'gc')
51 | );
52 | }
53 | //session_start();
54 | //header("Cache-control: private"); // to overcome/fix a bug in IE 6.x
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/CacheConfigBuilder.php:
--------------------------------------------------------------------------------
1 | "phps", //apc,xcach,ea; file, phps; memcached
8 | //"prefix" => ""
9 | //"host" => "localhost", //some ip, hostname
10 | //"port" => 3306,
11 | );
12 |
13 | public function addSingleHost($hostConfig)
14 | {
15 | $this->addHost("group_0", "node_0", "master", $hostConfig);
16 | }
17 |
18 | public function addHost($groupId, $nodeId = "node_0", $role = "master", $hostConfig)
19 | {
20 | if (isset($this->servers[$groupId][$nodeId][$role]))
21 | {//以相同role的第一个host为默认配置
22 | $ref = $this->servers[$groupId][$nodeId][$role][0];
23 | }
24 | else if ("slave" == $role && isset($this->servers[$groupId][$nodeId]["master"]))
25 | {//slave host以master的第一个host为默认配置
26 | $ref = $this->servers[$groupId][$nodeId]["master"][0];
27 | }
28 | else if (isset($this->servers[$groupId]) && count($this->servers[$groupId]))
29 | {//以本group第一个node的master第一个host为默认配置
30 | $refNode = key($this->servers[$groupId]);
31 | $ref = $this->servers[$groupId][$refNode]["master"][0];
32 | }
33 | else
34 | {
35 | if (!isset($hostConfig["adapter"]))
36 | {
37 | trigger_error("No db adapter specified");
38 | }
39 | $ref = $this->defaultConfig;
40 | }
41 | $conf = array_merge($ref, $hostConfig);
42 | $this->servers[$groupId][$nodeId][$role][] = $conf;
43 | }
44 |
45 | public function getServers()
46 | {
47 | return $this->servers;
48 | }
49 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/CacheHandle.php:
--------------------------------------------------------------------------------
1 | connectionManager = new LtCacheConnectionManager;
19 | $this->connectionManager->configHandle =$this->configHandle;
20 | }
21 |
22 | public function add($key, $value, $ttl = 0, $tableName)
23 | {
24 | $this->initConnection();
25 | return $this->connectionAdapter->add($key, $value, $ttl, $tableName, $this->connectionResource);
26 | }
27 |
28 | public function del($key, $tableName)
29 | {
30 | $this->initConnection();
31 | return $this->connectionAdapter->del($key, $tableName, $this->connectionResource);
32 | }
33 |
34 | public function get($key, $tableName)
35 | {
36 | $this->initConnection();
37 | return $this->connectionAdapter->get($key, $tableName, $this->connectionResource);
38 | }
39 |
40 | public function update($key, $value, $ttl = 0, $tableName)
41 | {
42 | $this->initConnection();
43 | return $this->connectionAdapter->update($key, $value, $ttl, $tableName, $this->connectionResource);
44 | }
45 |
46 | protected function initConnection()
47 | {
48 | $connectionInfo = $this->connectionManager->getConnection($this->group, $this->node, $this->role);
49 | $this->connectionAdapter = $connectionInfo["connectionAdapter"];
50 | $this->connectionResource = $connectionInfo["connectionResource"];
51 | }
52 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/Adapter/CacheAdapterPhps.php:
--------------------------------------------------------------------------------
1 | cacheFileRoot = $hostConf['host'];
10 | $fileStore->prefix = 'Ltcache-phps-';
11 | $fileStore->init();
12 | return $fileStore;
13 | }
14 | else
15 | {
16 | trigger_error("Must set [host]");
17 | return false;
18 | }
19 | }
20 |
21 | public function add($key, $value, $ttl = 0, $tableName, $connectionResource)
22 | {
23 | return $connectionResource->add($this->getRealKey($tableName, $key), $this->valueToString($value), $ttl);
24 | }
25 |
26 | public function del($key, $tableName, $connectionResource)
27 | {
28 | return $connectionResource->del($this->getRealKey($tableName, $key));
29 | }
30 |
31 | public function get($key, $tableName, $connectionResource)
32 | {
33 | return $this->stringToValue($connectionResource->get($this->getRealKey($tableName, $key)));
34 | }
35 |
36 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource)
37 | {
38 | return $connectionResource->update($this->getRealKey($tableName, $key), $this->valueToString($value), $ttl);
39 | }
40 |
41 | protected function getRealKey($tableName, $key)
42 | {
43 | return $tableName . "-" . $key;
44 | }
45 |
46 | protected function valueToString($value)
47 | {
48 | return serialize($value);
49 | }
50 |
51 | protected function stringToValue($str)
52 | {
53 | return unserialize($str);
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/CacheConnectionManager.php:
--------------------------------------------------------------------------------
1 | getNewConnection($group, $node, $role))
10 | {
11 | return array(
12 | "connectionAdapter" => $this->connectionAdapter,
13 | "connectionResource" => $connection
14 | );
15 | }
16 | else
17 | {
18 | trigger_error("no cache server can be connected");
19 | return false;
20 | }
21 | }
22 |
23 | protected function getNewConnection($group, $node, $role)
24 | {
25 | $servers = $this->configHandle->get("cache.servers");
26 | $hostTotal = count($servers[$group][$node][$role]);
27 | $hostIndexArray = array_keys($servers[$group][$node][$role]);
28 | while ($hostTotal)
29 | {
30 | $hashNumber = substr(microtime(),7,1) % $hostTotal;
31 | $hostConfig = $servers[$group][$node][$role][$hostIndexArray[$hashNumber]];
32 | $cacheFactory = new LtCacheAdapterFactory;
33 | $this->connectionAdapter = $cacheFactory->getConnectionAdapter($hostConfig["adapter"]);
34 | if ($connection = $this->connectionAdapter->connect($hostConfig))
35 | {
36 | return $connection;
37 | }
38 | else
39 | {
40 | //trigger_error('connection fail', E_USER_WARNING);
41 | //delete the unavailable server
42 | for ($i = $hashNumber; $i < $hostTotal - 1; $i ++)
43 | {
44 | $hostIndexArray[$i] = $hostIndexArray[$i+1];
45 | }
46 | unset($hostIndexArray[$hostTotal-1]);
47 | $hostTotal --;
48 | }//end else
49 | }//end while
50 | return false;
51 | }
52 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Cache/Cache.php:
--------------------------------------------------------------------------------
1 | configHandle instanceof LtConfig)
14 | {
15 | if (class_exists("LtObjectUtil", false))
16 | {
17 | $this->configHandle = LtObjectUtil::singleton("LtConfig");
18 | }
19 | else
20 | {
21 | $this->configHandle = new LtConfig;
22 | }
23 | }
24 | }
25 |
26 | public function init()
27 | {
28 | $this->ch = new LtCacheHandle;
29 | $this->ch->configHandle = $this->configHandle;
30 | $this->ch->init();
31 | $this->ch->group = $this->getGroup();
32 | $this->ch->node = $this->getNode();
33 | }
34 |
35 | public function getTDG($tableName)
36 | {
37 | $tdg = new LtCacheTableDataGateway;
38 | $tdg->tableName = $tableName;
39 | $tdg->ch = $this->ch;
40 | return $tdg;
41 | }
42 |
43 | public function changeNode($node)
44 | {
45 | $this->node = $node;
46 | $this->dbh->node = $node;
47 | }
48 |
49 | protected function getGroup()
50 | {
51 | if ($this->group)
52 | {
53 | return $this->group;
54 | }
55 | $servers = $this->configHandle->get("cache.servers");
56 | if (1 == count($servers))
57 | {
58 | return key($servers);
59 | }
60 | return false;
61 | }
62 |
63 | protected function getNode()
64 | {
65 | if ($this->node)
66 | {
67 | return $this->node;
68 | }
69 | $servers = $this->configHandle->get("cache.servers");
70 | if (1 == count($servers[$this->getGroup()]))
71 | {
72 | return key($servers[$this->getGroup()]);
73 | }
74 | return false;
75 | }
76 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/buildermodel/AlipayTradeCloseContentBuilder.php:
--------------------------------------------------------------------------------
1 | bizContentarr)){
30 | $this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
31 | }
32 | return $this->bizContent;
33 | }
34 |
35 | public function getTradeNo()
36 | {
37 | return $this->tradeNo;
38 | }
39 |
40 | public function setTradeNo($tradeNo)
41 | {
42 | $this->tradeNo = $tradeNo;
43 | $this->bizContentarr['trade_no'] = $tradeNo;
44 | }
45 |
46 | public function getOutTradeNo()
47 | {
48 | return $this->outTradeNo;
49 | }
50 |
51 | public function setOutTradeNo($outTradeNo)
52 | {
53 | $this->outTradeNo = $outTradeNo;
54 | $this->bizContentarr['out_trade_no'] = $outTradeNo;
55 | }
56 | public function getOperatorId()
57 | {
58 | return $this->operatorId;
59 | }
60 |
61 | public function setOperatorId($operatorId)
62 | {
63 | $this->operatorId = $operatorId;
64 | $this->bizContentarr['operator_id'] = $operatorId;
65 | }
66 |
67 | }
68 |
69 | ?>
--------------------------------------------------------------------------------
/extend/alipay/pay/buildermodel/AlipayTradeFastpayRefundQueryContentBuilder.php:
--------------------------------------------------------------------------------
1 | bizContentarr)){
28 | $this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
29 | }
30 | return $this->bizContent;
31 | }
32 |
33 | public function getTradeNo()
34 | {
35 | return $this->tradeNo;
36 | }
37 |
38 | public function setTradeNo($tradeNo)
39 | {
40 | $this->tradeNo = $tradeNo;
41 | $this->bizContentarr['trade_no'] = $tradeNo;
42 | }
43 |
44 | public function getOutTradeNo()
45 | {
46 | return $this->outTradeNo;
47 | }
48 |
49 | public function setOutTradeNo($outTradeNo)
50 | {
51 | $this->outTradeNo = $outTradeNo;
52 | $this->bizContentarr['out_trade_no'] = $outTradeNo;
53 | }
54 | public function getOutRequestNo()
55 | {
56 | return $this->outRequestNo;
57 | }
58 | public function setOutRequestNo($outRequestNo)
59 | {
60 | $this->outRequestNo = $outRequestNo;
61 | $this->bizContentarr['out_request_no'] = $outRequestNo;
62 | }
63 | }
64 |
65 | ?>
--------------------------------------------------------------------------------
/extend/alipay/Query.php:
--------------------------------------------------------------------------------
1 | setTradeNo(trim($query_no));
36 | } else {
37 | $RequestBuilder->setOutTradeNo($query_no);
38 | }
39 |
40 | // 2.获取配置
41 | $config = config('alipay');
42 | $aop = new \AlipayTradeService($config);
43 |
44 | // 3.发起请求
45 | $response = $aop->Query($RequestBuilder);
46 |
47 | // 4.转为数组格式返回
48 | $response = json_decode(json_encode($response), true);
49 |
50 | // 5.进行结果处理
51 | if (!empty($response['code']) && $response['code'] != '10000') {
52 | self::processError('交易查询接口出错, 错误码: '.$response['code'].' 错误原因: '.$response['sub_msg']);
53 | }
54 |
55 | return $response;
56 | }
57 |
58 | /**
59 | * 统一错误处理接口
60 | * @param string $msg 错误描述
61 | */
62 | private static function processError($msg)
63 | {
64 | throw new \think\Exception($msg);
65 | }
66 | }
--------------------------------------------------------------------------------
/extend/alipay/Close.php:
--------------------------------------------------------------------------------
1 | setTradeNo(trim($query_no));
36 | } else {
37 | $RequestBuilder->setOutTradeNo(trim($query_no));
38 | }
39 |
40 | // 2.获取配置
41 | $config = config('alipay');
42 | $aop = new \AlipayTradeService($config);
43 |
44 | // 3.发起请求
45 | $response = $aop->Close($RequestBuilder);
46 |
47 | // 4.转为数组格式返回
48 | $response = json_decode(json_encode($response), true);
49 |
50 | // 5.进行结果处理
51 | if (!empty($response['code']) && $response['code'] != '10000') {
52 | self::processError('交易关闭接口出错, 错误码: '.$response['code'].' 错误原因: '.$response['sub_msg']);
53 | }
54 |
55 | return $response;
56 | }
57 |
58 | /**
59 | * 统一错误处理接口
60 | * @param string $msg 错误描述
61 | */
62 | private static function processError($msg)
63 | {
64 | throw new \think\Exception($msg);
65 | }
66 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/AopEncrypt.php:
--------------------------------------------------------------------------------
1 | prefix = 'LtCache-file';
8 | $fileStore->useSerialize = true;
9 | $fileStore->init();
10 | return $fileStore;
11 | }
12 |
13 | public function add($key, $value, $ttl = 0, $tableName, $connectionResource)
14 | {
15 | if (0 != $ttl)
16 | {
17 | $ttl += time();
18 | }
19 | if (true == $connectionResource->add($this->getRealKey($tableName, $key), array("ttl" => $ttl, "value" => $value)))
20 | {
21 | return true;
22 | }
23 | else
24 | {
25 | if ($this->get($key,$tableName,$connectionResource))
26 | {
27 | return false;
28 | }
29 | else
30 | {
31 | $this->del($key,$tableName,$connectionResource);
32 | return $connectionResource->add($this->getRealKey($tableName, $key), array("ttl" => $ttl, "value" => $value));
33 | }
34 | }
35 | }
36 |
37 | public function del($key, $tableName, $connectionResource)
38 | {
39 | return $connectionResource->del($this->getRealKey($tableName, $key));
40 | }
41 |
42 | public function get($key, $tableName, $connectionResource)
43 | {
44 | $cachedArray = $connectionResource->get($this->getRealKey($tableName, $key));
45 | if (is_array($cachedArray) && (0 == $cachedArray["ttl"] || $cachedArray["ttl"] > time()))
46 | {
47 | return $cachedArray["value"];
48 | }
49 | else
50 | {
51 | return false;
52 | }
53 | }
54 |
55 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource)
56 | {
57 | if (0 != $ttl)
58 | {
59 | $ttl += time();
60 | }
61 | return $connectionResource->update($this->getRealKey($tableName, $key), array("ttl" => $ttl, "value" => $value));
62 | }
63 |
64 | protected function getRealKey($tableName, $key)
65 | {
66 | return $tableName . "-" . $key;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterSqlite.php:
--------------------------------------------------------------------------------
1 | ';
49 | // print_r(debug_backtrace());
50 | // debug_print_backtrace();
51 | // echo '';
52 | // delete from table 结果为0,原因未知。
53 | // 使用 delete from table where 1 能返回正确结果
54 | return sqlite_changes($connResource);
55 | }
56 |
57 | public function query($sql, $connResource)
58 | {
59 | $result = sqlite_query($connResource, $sql, SQLITE_ASSOC);
60 | return sqlite_fetch_all($result, SQLITE_ASSOC);
61 | }
62 |
63 | public function lastInsertId($connResource)
64 | {
65 | return sqlite_last_insert_rowid($connResource);
66 | }
67 |
68 | public function escape($sql, $connResource)
69 | {
70 | return sqlite_escape_string($sql);
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/RBAC/Rbac.php:
--------------------------------------------------------------------------------
1 | configHandle instanceof LtConfig)
11 | {
12 | if (class_exists("LtObjectUtil", false))
13 | {
14 | $this->configHandle = LtObjectUtil::singleton("LtConfig");
15 | }
16 | else
17 | {
18 | $this->configHandle = new LtConfig;
19 | }
20 | }
21 | }
22 |
23 | public function init()
24 | {
25 | $this->acl = $this->configHandle->get('rbac.acl');
26 | }
27 |
28 | public function checkAcl($roles, $resource)
29 | {
30 | $allow = false;
31 | // deny priority
32 | foreach (array("allow", "deny") as $operation)
33 | {
34 | foreach($roles as $role)
35 | {
36 | if (isset($this->acl[$operation][$role]))
37 | {
38 | // everyone *
39 | if (in_array($resource, $this->acl[$operation]['*']))
40 | {
41 | $allow = "allow" == $operation ? true : false;
42 | break;
43 | }
44 | if (in_array($resource, $this->acl[$operation][$role]))
45 | {
46 | $allow = "allow" == $operation ? true : false;
47 | break;
48 | }
49 | else
50 | {
51 | $res = explode('/', trim($resource, '/'));
52 | for ($i = count($res)-1; $i >= 0; $i--)
53 | {
54 | $res[$i] = '*';
55 | $tmp = implode('/', $res);
56 | if (in_array($tmp, $this->acl[$operation][$role]))
57 | {
58 | $allow = "allow" == $operation ? true : false;
59 | break;
60 | }
61 | unset($res[$i]);
62 | }
63 | }
64 | }
65 | }
66 | }
67 | return $allow;
68 | }
69 | /*
70 | private function __set($p,$v)
71 | {
72 | $this->$p = $v;
73 | }
74 |
75 | private function __get($p)
76 | {
77 | if(isset($this->$p))
78 | {
79 | return($this->$p);
80 | }
81 | else
82 | {
83 | return(NULL);
84 | }
85 | }
86 | */
87 | }
88 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Config.php:
--------------------------------------------------------------------------------
1 | storeHandle))
10 | {
11 | $this->storeHandle = new LtStoreMemory;
12 | }
13 | }
14 |
15 | public function init()
16 | {
17 | //don't removeme, I am the placeholder
18 | }
19 |
20 | public function get($key)
21 | {
22 | $storedConfig = $this->storeHandle->get($key);
23 | if ($storedConfig instanceof LtConfigExpression)
24 | {
25 | $str = $storedConfig->__toString();
26 | if ($storedConfig->autoRetrived)
27 | {
28 | eval("\$value=$str;");
29 | return $value;
30 | }
31 | else
32 | {
33 | return $str;
34 | }
35 | }
36 | else
37 | {
38 | return $storedConfig;
39 | }
40 | }
41 |
42 | /**
43 | * 警告
44 | * 这里会包含两个用户定义的配置文件,为了不和配置文件里的变量名发生重名
45 | * 本方法不定义和使用变量名
46 | */
47 | public function loadConfigFile($configFile)
48 | {
49 | if (0 == $this->storeHandle->get(".config_total"))
50 | {
51 | if (null === $configFile || !is_file($configFile))
52 | {
53 | trigger_error("no config file specified or invalid config file");
54 | }
55 | $this->conf = include($configFile);
56 | if (!is_array($this->conf))
57 | {
58 | trigger_error("config file do NOT return array: $configFile");
59 | }
60 | elseif (!empty($this->conf))
61 | {
62 | if (0 == $this->storeHandle->get(".config_total"))
63 | {
64 | $this->storeHandle->add(".config_total", 0);
65 | }
66 | $this->addConfig($this->conf);
67 | }
68 | }
69 | }
70 |
71 | public function addConfig($configArray)
72 | {
73 | foreach($configArray as $key => $value)
74 | {
75 | if (!$this->storeHandle->update($key, $value))
76 | {
77 | if ($this->storeHandle->add($key, $value))
78 | {
79 | $this->storeHandle->update(".config_total", $this->storeHandle->get(".config_total") + 1, 0);
80 | }
81 | }
82 | }
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/application/example/controller/Notify.php:
--------------------------------------------------------------------------------
1 | where('out_trade_no', $out_trade_no)->find();
37 | $params = [
38 | 'out_trade_no' => $order['out_trade_no'],
39 | 'total_amount' => $order['total_amount'],
40 | 'status' => $order['status'],
41 | 'id' => $order['id']
42 | ];
43 |
44 | $this->params = $params;
45 | }
46 |
47 | /**
48 | * 检查订单状态
49 | *
50 | * @return Boolean true表示已经处理过 false表示未处理过
51 | */
52 | public function checkOrderStatus()
53 | {
54 | // 以下仅示例
55 | if($this->params['status'] == 0) {
56 | // 表示未处理
57 | return false;
58 | } else {
59 | return true;
60 | }
61 | }
62 |
63 | /**
64 | * 业务处理
65 | * @return Boolean true表示业务处理成功 false表示处理失败
66 | */
67 | public function handle()
68 | {
69 | // 以下仅示例
70 | $result = Db::name('order')->where('id', $this->params['id'])->update(['status'=>1]);
71 | if($result) {
72 | return true;
73 | } else {
74 | return false;
75 | }
76 | }
77 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterPdo.php:
--------------------------------------------------------------------------------
1 | true);
7 | if (isset($connConf['pconnect']) && true == $connConf['pconnect'])
8 | {
9 | $option[PDO::ATTR_PERSISTENT] = true;
10 | }
11 | else
12 | {
13 | $option[PDO::ATTR_PERSISTENT] = false;
14 | }
15 | switch ($connConf['adapter'])
16 | {
17 | case "pdo_mysql":
18 | $dsn = "mysql:host={$connConf['host']};dbname={$connConf['dbname']}";
19 | break;
20 | case "pdo_sqlite":
21 | $connConf["host"] = rtrim($connConf["host"], '\\/') . DIRECTORY_SEPARATOR;
22 | if (!is_dir($connConf["host"]))
23 | {
24 | if (!@mkdir($connConf["host"], 0777, true))
25 | {
26 | trigger_error("Can not create {$connConf['host']}");
27 | }
28 | }
29 | $dsn = "{$connConf['sqlite_version']}:{$connConf['host']}{$connConf['dbname']}";
30 | break;
31 | case "pdo_pgsql":
32 | $dsn = "pgsql:host={$connConf['host']} port={$connConf['port']} dbname={$connConf['dbname']} user={$connConf['username']} password={$connConf['password']}";
33 | break;
34 | case "odbc":
35 | $dsn = "odbc:" . $connConf["host"];
36 | break;
37 | }
38 | return new PDO($dsn, $connConf['username'], $connConf['password'], $option);
39 | }
40 |
41 | public function exec($sql, $connResource)
42 | {
43 | return $connResource->exec($sql);
44 | }
45 |
46 | public function query($sql, $connResource)
47 | {
48 | return $connResource->query($sql)->fetchAll(PDO::FETCH_ASSOC);
49 | }
50 |
51 | /**
52 | *
53 | * @todo pgsql support
54 | */
55 | public function lastInsertId($connResource)
56 | {
57 | return $connResource->lastInsertId();
58 | }
59 |
60 | public function escape($sql, $connResource)
61 | {
62 | // quote返回值带最前面和最后面的单引号, 这里去掉, DbHandler中加
63 | return trim($connResource->quote($sql), "'");
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/Db.php:
--------------------------------------------------------------------------------
1 | configHandle instanceof LtConfig)
13 | {
14 | if (class_exists("LtObjectUtil", false))
15 | {
16 | $this->configHandle = LtObjectUtil::singleton("LtConfig");
17 | }
18 | else
19 | {
20 | $this->configHandle = new LtConfig;
21 | }
22 | }
23 | }
24 |
25 | public function init()
26 | {
27 | $this->dbh = new LtDbHandle;
28 | $this->dbh->configHandle = $this->configHandle;
29 | $this->dbh->group = $this->getGroup();
30 | $this->dbh->node = $this->getNode();
31 | $this->dbh->init();
32 | }
33 |
34 | public function getDbHandle()
35 | {
36 | return $this->dbh;
37 | }
38 |
39 | public function getTDG($tableName)
40 | {
41 | $tg = new LtDbTableDataGateway;
42 | $tg->configHandle = $this->configHandle;
43 | $tg->tableName = $tableName;
44 | $tg->createdColumn = 'created';
45 | $tg->modifiedColumn = 'modified';
46 | $tg->dbh = $this->dbh;
47 | return $tg;
48 | }
49 |
50 | public function getSqlMapClient()
51 | {
52 | $smc = new LtDbSqlMapClient;
53 | $smc->configHandle = $this->configHandle;
54 | $smc->dbh = $this->dbh;
55 | return $smc;
56 | }
57 |
58 | public function changeNode($node)
59 | {
60 | $this->node = $node;
61 | $this->dbh->node = $node;
62 | }
63 |
64 | protected function getGroup()
65 | {
66 | if ($this->group)
67 | {
68 | return $this->group;
69 | }
70 | $servers = $this->configHandle->get("db.servers");
71 | if (1 == count($servers))
72 | {
73 | return key($servers);
74 | }
75 | return false;
76 | }
77 |
78 | protected function getNode()
79 | {
80 | if ($this->node)
81 | {
82 | return $this->node;
83 | }
84 | $servers = $this->configHandle->get("db.servers");
85 | if (1 == count($servers[$this->getGroup()]))
86 | {
87 | return key($servers[$this->getGroup()]);
88 | }
89 | return false;
90 | }
91 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/MVC/Context.php:
--------------------------------------------------------------------------------
1 | check($_POST);
39 |
40 | // 2.和数据库信息做对比
41 | $paramsResult = self::checkParams($params);
42 |
43 | // 3.返回结果
44 | if($signResult && $paramsResult) {
45 | return true;
46 | } else {
47 | return false;
48 | }
49 | }
50 |
51 | /**
52 | * 判断两个数组是否一致, 两个数组的参数如下:
53 | * $params['out_trade_no'] 商户单号
54 | * $params['total_amount'] 订单金额
55 | * $params['app_id'] app_id号
56 | */
57 | public static function checkParams($params)
58 | {
59 | $notifyArr = [
60 | 'out_trade_no' => $_POST['out_trade_no'],
61 | 'total_amount' => $_POST['total_amount'],
62 | 'app_id' => $_POST['app_id'],
63 | ];
64 | $paramsArr = [
65 | 'out_trade_no' => $params['out_trade_no'],
66 | 'total_amount' => $params['total_amount'],
67 | 'app_id' => config('alipay.app_id'),
68 | ];
69 | $result = array_diff_assoc($paramsArr, $notifyArr);
70 | return empty($result) ? true : false;
71 | }
72 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayUserInfoShareRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/Adapter/SqlAdapter/DbSqlAdapterPgsql.php:
--------------------------------------------------------------------------------
1 | 0
55 | AND a.attrelid = c.oid
56 | AND a.atttypid = t.oid
57 | ORDER BY a.attnum";
58 | }
59 |
60 | public function limit($limit, $offset)
61 | {
62 | return " LIMIT $limit OFFSET $offset";
63 | }
64 |
65 | public function getSchemas($queryResult)
66 | {
67 |
68 | }
69 | public function getTables($queryResult)
70 | {
71 |
72 | }
73 | public function getFields($queryResult)
74 | {
75 |
76 | }
77 | public function detectQueryType($sql)
78 | {
79 |
80 | }
81 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/MVC/Dispatcher.php:
--------------------------------------------------------------------------------
1 | $action));
24 | trigger_error("{$actionClassName} CLASS NOT FOUND! module={$module} action={$action} classType={$classType}");
25 | }
26 | else
27 | {
28 | if (!($context instanceof LtContext))
29 | {
30 | $newContext = new LtContext;
31 | }
32 | else
33 | {
34 | $newContext = clone $context;
35 | }
36 | $newContext->uri['module'] = $module;
37 | $newContext->uri[strtolower($classType)] = $action;
38 | $actionInstance = new $actionClassName();
39 | $actionInstance->context = $newContext;
40 | $actionInstance->viewDir = $this->viewDir;
41 | $actionInstance->viewTplDir = $this->viewTplDir; // 模板编译目录
42 | $actionInstance->viewTplAutoCompile = $this->viewTplAutoCompile;
43 | $actionInstance->executeChain();
44 | $this->data = $actionInstance->data;
45 | }
46 | }
47 |
48 | /**
49 | * Disptach the module/action calling.
50 | *
51 | * @param $module string
52 | * @param $action string
53 | * @return void
54 | * @todo allow one action dispatch another action
55 | */
56 | public function dispatchAction($module, $action, $context = null)
57 | {
58 | $this->_dispatch($module, $action, $context);
59 | }
60 |
61 | /**
62 | * Disptach the module/component calling.
63 | *
64 | * @param $module string
65 | * @param $component string
66 | * @param $data mixed
67 | * @return void
68 | */
69 | public function dispatchComponent($module, $component, $context = null)
70 | {
71 | $cloneOfContext = clone $context;
72 | $this->_dispatch($module, $component, $cloneOfContext, "Component");
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayPointBudgetGetRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayUserAccountGetRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayPointBalanceGetRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/DB/Adapter/SqlAdapter/DbSqlAdapterMysql.php:
--------------------------------------------------------------------------------
1 | $value)
54 | {
55 | $fields[$value['Field']]['name'] = $value['Field'];
56 | $fields[$value['Field']]['type'] = $value['Type'];
57 | /*
58 | * not null is NO or empty, null is YES
59 | */
60 | $fields[$value['Field']]['notnull'] = (bool) ($value['Null'] != 'YES');
61 | $fields[$value['Field']]['default'] = $value['Default'];
62 | $fields[$value['Field']]['primary'] = (strtolower($value['Key']) == 'pri');
63 | }
64 | return $fields;
65 | }
66 | public function detectQueryType($sql)
67 | {
68 | if (preg_match("/^\s*SELECT|^\s*EXPLAIN|^\s*SHOW|^\s*DESCRIBE/i", $sql))
69 | {
70 | $ret = 'SELECT';
71 | }
72 | else if (preg_match("/^\s*INSERT/i", $sql))
73 | {
74 | $ret = 'INSERT';
75 | }
76 | else if (preg_match("/^\s*UPDATE|^\s*DELETE|^\s*REPLACE/i", $sql))
77 | {
78 | $ret = 'CHANGE_ROWS';
79 | }
80 | else if (preg_match("/^\s*USE|^\s*SET/i", $sql))
81 | {
82 | $ret = 'SET_SESSION_VAR';
83 | }
84 | else
85 | {
86 | $ret = 'OTHER';
87 | }
88 | return $ret;
89 | }
90 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayTrustUserScoreGetRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayUserUserinfoShareRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiMemberRetailerQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayMobilePublicMenuGetRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOpenPublicInfoQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOpenPublicLabelQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOpenPublicMenuQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayAssetPointBudgetQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayDataDataserviceSdfsdfRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayEbppMerchantConfigGetRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayMobilePublicInfoQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayMobilePublicMenuQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiItemExtitemBrandQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayAssetPointBalanceQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayMobileStdPublicMenuQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMaterialImageQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiMemberBrandownerNameQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMaterialImageModifyRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiMarketingCampaignTagsQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMarketShopAlbumBindRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMarketShopAlbumQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMarketShopAlbumCreateRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMarketShopAlbumDeleteRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMarketShopAlbumModifyRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMarketShopAlbumUnbindRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOpenServicemarketOrderNotifyRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayMobilePublicContactFollowListRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOfflineMarketProductUsedetailRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayCommerceEducateStudentinfoShareRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayCommerceCityfacilitatorCityQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiMarketingDataCustomtagBatchqueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOpenPublicContactFollowBatchqueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayOpenPublicMultimediaDownloadProxyRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayCommerceTransportOfflinepayKeyQueryRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiMarketingDataSmartmanagementDiagnoseRequest.php:
--------------------------------------------------------------------------------
1 | notifyUrl=$notifyUrl;
29 | }
30 |
31 | public function getNotifyUrl()
32 | {
33 | return $this->notifyUrl;
34 | }
35 |
36 | public function setReturnUrl($returnUrl)
37 | {
38 | $this->returnUrl=$returnUrl;
39 | }
40 |
41 | public function getReturnUrl()
42 | {
43 | return $this->returnUrl;
44 | }
45 |
46 | public function getApiParas()
47 | {
48 | return $this->apiParas;
49 | }
50 |
51 | public function getTerminalType()
52 | {
53 | return $this->terminalType;
54 | }
55 |
56 | public function setTerminalType($terminalType)
57 | {
58 | $this->terminalType = $terminalType;
59 | }
60 |
61 | public function getTerminalInfo()
62 | {
63 | return $this->terminalInfo;
64 | }
65 |
66 | public function setTerminalInfo($terminalInfo)
67 | {
68 | $this->terminalInfo = $terminalInfo;
69 | }
70 |
71 | public function getProdCode()
72 | {
73 | return $this->prodCode;
74 | }
75 |
76 | public function setProdCode($prodCode)
77 | {
78 | $this->prodCode = $prodCode;
79 | }
80 |
81 | public function setApiVersion($apiVersion)
82 | {
83 | $this->apiVersion=$apiVersion;
84 | }
85 |
86 | public function getApiVersion()
87 | {
88 | return $this->apiVersion;
89 | }
90 |
91 | public function setNeedEncrypt($needEncrypt)
92 | {
93 |
94 | $this->needEncrypt=$needEncrypt;
95 |
96 | }
97 |
98 | public function getNeedEncrypt()
99 | {
100 | return $this->needEncrypt;
101 | }
102 |
103 | }
104 |
--------------------------------------------------------------------------------
/extend/alipay/pay/lotusphp_runtime/Captcha/Captcha.php:
--------------------------------------------------------------------------------
1 | configHandle instanceof LtConfig)
12 | {
13 | if (class_exists("LtObjectUtil", false))
14 | {
15 | $this->configHandle = LtObjectUtil::singleton("LtConfig");
16 | }
17 | else
18 | {
19 | $this->configHandle = new LtConfig;
20 | }
21 | }
22 | }
23 |
24 | public function init()
25 | {
26 | if (!is_object($this->storeHandle))
27 | {
28 | $this->storeHandle = new LtStoreFile;
29 | $this->storeHandle->prefix = 'LtCaptcha-seed-';
30 | $this->storeHandle->init();
31 | }
32 | }
33 |
34 | public function getImageResource($seed)
35 | {
36 | if (empty($seed))
37 | {
38 | trigger_error("empty seed");
39 | return false;
40 | }
41 | if (!is_object($this->imageEngine))
42 | {
43 | if ($imageEngine = $this->configHandle->get("captcha.image_engine"))
44 | {
45 | if (class_exists($imageEngine))
46 | {
47 | $this->imageEngine = new $imageEngine;
48 | $this->imageEngine->conf = $this->configHandle->get("captcha.image_engine_conf");
49 | }
50 | else
51 | {
52 | trigger_error("captcha.image_engine : $imageEngine not exists");
53 | }
54 | }
55 | else
56 | {
57 | trigger_error("empty captcha.image_engine");
58 | return false;
59 | }
60 | }
61 | $word = $this->generateRandCaptchaWord($seed);
62 | $this->storeHandle->add($seed, $word);
63 | return $this->imageEngine->drawImage($word);
64 | }
65 |
66 | public function verify($seed, $userInput)
67 | {
68 | if ($word = $this->storeHandle->get($seed))
69 | {
70 | $this->storeHandle->del($seed);
71 | return $userInput === $word;
72 | }
73 | else
74 | {
75 | return false;
76 | }
77 | }
78 |
79 | protected function generateRandCaptchaWord()
80 | {
81 | $allowChars = $this->configHandle->get("captcha.allow_chars");
82 | $length = $this->configHandle->get("captcha.length");
83 | $allowedSymbolsLength = strlen($allowChars) - 1;
84 | $captchaWord = "";
85 | for ($i = 0; $i < $length; $i ++)
86 | {
87 | $captchaWord .= $allowChars[mt_rand(0, $allowedSymbolsLength)];
88 | }
89 | return $captchaWord;
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/extend/alipay/Wappay.php:
--------------------------------------------------------------------------------
1 | setSubject($params['subject']);
42 | $payRequestBuilder->setOutTradeNo($params['out_trade_no']);
43 | $payRequestBuilder->setTotalAmount($params['total_amount']);
44 | $payRequestBuilder->setTimeExpress('1m');
45 |
46 | // 3.获取配置
47 | $config = config('alipay');
48 | $payResponse = new \AlipayWapPayTradeService($config);
49 |
50 | // 4.进行请求
51 | $result=$payResponse->wapPay($payRequestBuilder,$config['return_url'],$config['notify_url']);
52 | }
53 |
54 |
55 | /**
56 | * 校检参数
57 | */
58 | private static function checkParams($params)
59 | {
60 | if (empty(trim($params['out_trade_no']))) {
61 | self::processError('商户订单号(out_trade_no)必填');
62 | }
63 |
64 | if (empty(trim($params['subject']))) {
65 | self::processError('商品标题(subject)必填');
66 | }
67 |
68 | if (floatval(trim($params['total_amount'])) <= 0) {
69 | self::processError('退款金额(total_amount)为大于0的数');
70 | }
71 | }
72 |
73 | /**
74 | * 统一错误处理接口
75 | * @param string $msg 错误描述
76 | */
77 | private static function processError($msg)
78 | {
79 | throw new \think\Exception($msg);
80 | }
81 | }
--------------------------------------------------------------------------------
/application/common/controller/NotifyHandler.php:
--------------------------------------------------------------------------------
1 | checkSignAndOrder();
19 | if($result) {
20 | // 2.订单处理
21 | $this->orderHandle();
22 | echo "success"; //请不要修改或删除
23 | } else {
24 | echo "fail"; //请不要修改或删除
25 | }
26 | }
27 |
28 | // 1.验签和校检参数
29 | public function checkSignAndOrder()
30 | {
31 | $this->getOrder();
32 |
33 | if(empty($this->params)) {
34 | $this->processError('订单不存在');
35 | }
36 | $result = \alipay\Notify::check($this->params);
37 |
38 | if(!$result) {
39 | $this->processError('校检失败');
40 | }
41 | return $result;
42 | }
43 |
44 | // 2.订单处理
45 | public function orderHandle()
46 | {$_POST['trade_status'] = 'TRADE_SUCCESS';
47 | if($_POST['trade_status'] == 'TRADE_SUCCESS') {
48 | $orderStatus = $this->checkOrderStatus();
49 | if(!$orderStatus) {
50 | // 判断订单状态, 如果订单未做过处理, 则处理自己核心业务
51 | $handlerResult = $this->handle();
52 | if(!$handlerResult) {
53 | // 如果订单未处理成功
54 | exit('fail');
55 | }
56 | }
57 | }
58 | }
59 |
60 | /**
61 | * 获取订单信息, 用于校检
62 | * @return array 订单数组, 必须包含订单号和订单金额
63 | * @param string $params['out_trade_no'] 商户订单
64 | * @param float $params['total_amount'] 订单金额
65 | */
66 | abstract protected function getOrder();
67 |
68 | /**
69 | * 检测订单状态, 用于判断订单是否已经做过处理
70 | * 原因: 本次业务处理较慢, 没来得及echo 'success', 同一订单的通知多次到达, 会造成多次修改数据库, 所以有必要进行订单状态确认
71 | *
72 | * @return Boolean true表示已经处理过 false表示未处理过
73 | */
74 | abstract protected function checkOrderStatus();
75 |
76 | /**
77 | * 处理自己业务
78 | * @return Boolean true表示业务处理 false表示处理失败
79 | */
80 | abstract protected function handle();
81 |
82 | /**
83 | * 统一错误处理接口
84 | * @param string $msg 错误描述
85 | */
86 | private static function processError($msg)
87 | {
88 | throw new \think\Exception($msg);
89 | }
90 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/AlipayMobilePublicMultiMediaExecute.php:
--------------------------------------------------------------------------------
1 | 'jpg', //+
22 | "text/plain" => 'text'
23 | );
24 |
25 | /*
26 | * @$header : 头部
27 | * */
28 | function __construct( $header, $body, $httpCode ){
29 | $this -> code = $httpCode;
30 | $this -> msg = '';
31 | $this -> params = $header ;
32 | $this -> body = $body;
33 | }
34 |
35 | /**
36 | *
37 | * @return text | bin
38 | */
39 | public function getCode(){
40 | return $this -> code ;
41 | }
42 |
43 | /**
44 | *
45 | * @return text | bin
46 | */
47 | public function getMsg(){
48 | return $this -> msg ;
49 | }
50 |
51 | /**
52 | *
53 | * @return text | bin
54 | */
55 | public function getType(){
56 | $subject = $this -> params ;
57 | $pattern = '/Content\-Type:([^;]+)/';
58 | preg_match($pattern, $subject, $matches);
59 | if( $matches ){
60 | $type = $matches[1];
61 | }else{
62 | $type = 'application/download';
63 | }
64 |
65 | return str_replace( ' ', '', $type );
66 | }
67 |
68 | /**
69 | *
70 | * @return text | bin
71 | */
72 | public function getContentLength(){
73 | $subject = $this -> params ;
74 | $pattern = '/Content-Length:\s*([^\n]+)/';
75 | preg_match($pattern, $subject, $matches);
76 | return (int)( isset($matches[1] ) ? $matches[1] : '' );
77 | }
78 |
79 |
80 | public function getFileSuffix( $fileType ){
81 | $type = isset( $this -> fileSuffix[ $fileType ] ) ? $this -> fileSuffix[ $fileType ] : 'text/plain' ;
82 | if( !$type ){
83 | $type = 'json';
84 | }
85 | return $type;
86 | }
87 |
88 |
89 |
90 | /**
91 | *
92 | * @return text | bin
93 | */
94 | public function getBody(){
95 | //header('Content-type: image/jpeg');
96 | return $this -> body ;
97 | }
98 |
99 | /**
100 | * 获取参数
101 | * @return text | bin
102 | */
103 | public function getParams(){
104 | return $this -> params ;
105 | }
106 |
107 |
108 | }
109 |
--------------------------------------------------------------------------------
/extend/alipay/pay/buildermodel/AlipayTradeRefundContentBuilder.php:
--------------------------------------------------------------------------------
1 | bizContentarr)){
36 | $this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
37 | }
38 | return $this->bizContent;
39 | }
40 |
41 | public function getTradeNo()
42 | {
43 | return $this->tradeNo;
44 | }
45 |
46 | public function setTradeNo($tradeNo)
47 | {
48 | $this->tradeNo = $tradeNo;
49 | $this->bizContentarr['trade_no'] = $tradeNo;
50 | }
51 |
52 | public function getOutTradeNo()
53 | {
54 | return $this->outTradeNo;
55 | }
56 |
57 | public function setOutTradeNo($outTradeNo)
58 | {
59 | $this->outTradeNo = $outTradeNo;
60 | $this->bizContentarr['out_trade_no'] = $outTradeNo;
61 | }
62 |
63 | public function getRefundAmount()
64 | {
65 | return $this->refundAmount;
66 | }
67 |
68 | public function setRefundAmount($refundAmount)
69 | {
70 | $this->refundAmount = $refundAmount;
71 | $this->bizContentarr['refund_amount'] = $refundAmount;
72 | }
73 |
74 | public function getRefundReason()
75 | {
76 | return $this->refundReason;
77 | }
78 |
79 | public function setRefundReason($refundReason)
80 | {
81 | $this->refundReason = $refundReason;
82 | $this->bizContentarr['refund_reason'] = $refundReason;
83 | }
84 |
85 | public function getOutRequestNo()
86 | {
87 | return $this->outRequestNo;
88 | }
89 |
90 | public function setOutRequestNo($outRequestNo)
91 | {
92 | $this->outRequestNo = $outRequestNo;
93 | $this->bizContentarr['out_request_no'] = $outRequestNo;
94 | }
95 | }
96 |
97 | ?>
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayAppTokenGetRequest.php:
--------------------------------------------------------------------------------
1 | secret = $secret;
28 | $this->apiParas["secret"] = $secret;
29 | }
30 |
31 | public function getSecret()
32 | {
33 | return $this->secret;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.app.token.get";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayUserTestRequest.php:
--------------------------------------------------------------------------------
1 | userinfo = $userinfo;
28 | $this->apiParas["userinfo"] = $userinfo;
29 | }
30 |
31 | public function getUserinfo()
32 | {
33 | return $this->userinfo;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.user.test";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayZmscoreZrankGetRequest.php:
--------------------------------------------------------------------------------
1 | userId = $userId;
28 | $this->apiParas["user_id"] = $userId;
29 | }
30 |
31 | public function getUserId()
32 | {
33 | return $this->userId;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.zmscore.zrank.get";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiItemStateRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "koubei.item.state";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiItemCreateRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "koubei.item.create";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiItemModifyRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "koubei.item.modify";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayMobileCodeQueryRequest.php:
--------------------------------------------------------------------------------
1 | qrToken = $qrToken;
28 | $this->apiParas["qr_token"] = $qrToken;
29 | }
30 |
31 | public function getQrToken()
32 | {
33 | return $this->qrToken;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.mobile.code.query";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayTradeCloseRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.trade.close";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayTradeAppPayRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.trade.app.pay";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayTradeCancelRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.trade.cancel";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayTradeRefundRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.trade.refund";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayTradeWapPayRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.trade.wap.pay";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayUserInfoAuthRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.user.info.auth";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/Pagepay.php:
--------------------------------------------------------------------------------
1 | setSubject($params['subject']);
41 | $payRequestBuilder->setTotalAmount($params['total_amount']);
42 | $payRequestBuilder->setOutTradeNo($params['out_trade_no']);
43 |
44 | // 3.获取配置
45 | $config = config('alipay');
46 | $aop = new \AlipayTradeService($config);
47 |
48 | /**
49 | * 4.电脑网站支付请求(会自动跳转到支付页面)
50 | * @param $builder 业务参数,使用buildmodel中的对象生成。
51 | * @param $return_url 同步跳转地址,公网可以访问
52 | * @param $notify_url 异步通知地址,公网可以访问
53 | * @return $response 支付宝返回的信息
54 | */
55 | $aop->pagePay($payRequestBuilder, $config['return_url'],$config['notify_url']);
56 | }
57 |
58 |
59 | /**
60 | * 校检参数
61 | */
62 | private static function checkParams($params)
63 | {
64 | if (empty(trim($params['out_trade_no']))) {
65 | self::processError('商户订单号(out_trade_no)必填');
66 | }
67 |
68 | if (empty(trim($params['subject']))) {
69 | self::processError('商品标题(subject)必填');
70 | }
71 |
72 | if (floatval(trim($params['total_amount'])) <= 0) {
73 | self::processError('退款金额(total_amount)为大于0的数');
74 | }
75 | }
76 |
77 | /**
78 | * 统一错误处理接口
79 | * @param string $msg 错误描述
80 | */
81 | private static function processError($msg)
82 | {
83 | throw new \think\Exception($msg);
84 | }
85 | }
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayTradeCreateRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.trade.create";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/AlipayTradePagePayRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "alipay.trade.page.pay";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiItemBatchqueryRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "koubei.item.batchquery";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/extend/alipay/pay/aop/request/KoubeiTradeItemBuyRequest.php:
--------------------------------------------------------------------------------
1 | bizContent = $bizContent;
28 | $this->apiParas["biz_content"] = $bizContent;
29 | }
30 |
31 | public function getBizContent()
32 | {
33 | return $this->bizContent;
34 | }
35 |
36 | public function getApiMethodName()
37 | {
38 | return "koubei.trade.item.buy";
39 | }
40 |
41 | public function setNotifyUrl($notifyUrl)
42 | {
43 | $this->notifyUrl=$notifyUrl;
44 | }
45 |
46 | public function getNotifyUrl()
47 | {
48 | return $this->notifyUrl;
49 | }
50 |
51 | public function setReturnUrl($returnUrl)
52 | {
53 | $this->returnUrl=$returnUrl;
54 | }
55 |
56 | public function getReturnUrl()
57 | {
58 | return $this->returnUrl;
59 | }
60 |
61 | public function getApiParas()
62 | {
63 | return $this->apiParas;
64 | }
65 |
66 | public function getTerminalType()
67 | {
68 | return $this->terminalType;
69 | }
70 |
71 | public function setTerminalType($terminalType)
72 | {
73 | $this->terminalType = $terminalType;
74 | }
75 |
76 | public function getTerminalInfo()
77 | {
78 | return $this->terminalInfo;
79 | }
80 |
81 | public function setTerminalInfo($terminalInfo)
82 | {
83 | $this->terminalInfo = $terminalInfo;
84 | }
85 |
86 | public function getProdCode()
87 | {
88 | return $this->prodCode;
89 | }
90 |
91 | public function setProdCode($prodCode)
92 | {
93 | $this->prodCode = $prodCode;
94 | }
95 |
96 | public function setApiVersion($apiVersion)
97 | {
98 | $this->apiVersion=$apiVersion;
99 | }
100 |
101 | public function getApiVersion()
102 | {
103 | return $this->apiVersion;
104 | }
105 |
106 | public function setNeedEncrypt($needEncrypt)
107 | {
108 |
109 | $this->needEncrypt=$needEncrypt;
110 |
111 | }
112 |
113 | public function getNeedEncrypt()
114 | {
115 | return $this->needEncrypt;
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------