chengkun
2025-04-30 6ab292fb7415be124651e312ec4f21c594568f17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
 * NOP API: nuomi.integration_cashier.IntegrationCashierConsumeNotify request
 * 
 * @author sdk-maker
 * @since 1.0, 2015.12.29
 */
abstract class NuomiBaseRequest
{
 
    protected $interfaceBelongToWhichPlatform = null;
 
    /**
     * @var array 接口中使用的参数
     */
    protected $apiParams = array();
 
    /**
     * @return array
     */
    public function getApiParams()
    {
        return $this->apiParams;
    }
 
    /**
     * @return null
     */
    public function getRequestPlatform(){
        return $this->interfaceBelongToWhichPlatform;
    }
 
 
    /**
     * @notice 无论是openapi还是nop都需要设置appKey参数,所以放到基类中来
     * @param int $appKey
     */
    public function setAppKey($appKey){
        $this->apiParams['appKey'] = $appKey;
    }
 
    /**
     * @param $rsaSign
     * @notice 无论是openapi还是nop都需要设置rsaSign参数,所以放到基类中来
     */
    public function setRsaSign($rsaSign){
        $this->apiParams['rsaSign'] = $rsaSign;
    }
 
 
}