File tree Expand file tree Collapse file tree 9 files changed +86
-0
lines changed Expand file tree Collapse file tree 9 files changed +86
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,44 @@ public function getMchId()
47
47
return $ this ->getParameter ('mch_id ' );
48
48
}
49
49
50
+ /**
51
+ * 子商户id
52
+ *
53
+ * @return mixed
54
+ */
55
+ public function getSubMchId ()
56
+ {
57
+ return $ this ->getParameter ('sub_mch_id ' );
58
+ }
59
+
60
+
61
+ /**
62
+ * @param mixed $subMchId
63
+ */
64
+ public function setSubMchId ($ mchId )
65
+ {
66
+ $ this ->setParameter ('sub_mch_id ' , $ mchId );
67
+ }
68
+
69
+
70
+ /**
71
+ * 子商户 app_id
72
+ *
73
+ * @return mixed
74
+ */
75
+ public function getSubAppId ()
76
+ {
77
+ return $ this ->getParameter ('sub_appid ' );
78
+ }
79
+
80
+
81
+ /**
82
+ * @param mixed $subAppId
83
+ */
84
+ public function setSubAppId ($ subAppId )
85
+ {
86
+ $ this ->setParameter ('sub_appid ' , $ subAppId );
87
+ }
50
88
51
89
public function setNotifyUrl ($ url )
52
90
{
Original file line number Diff line number Diff line change @@ -63,4 +63,40 @@ public function setMchId($mchId)
63
63
{
64
64
$ this ->setParameter ('mch_id ' , $ mchId );
65
65
}
66
+
67
+ /**
68
+ * @return mixed
69
+ */
70
+ public function getSubMchId ()
71
+ {
72
+ return $ this ->getParameter ('sub_mch_id ' );
73
+ }
74
+
75
+
76
+ /**
77
+ * @param mixed $subMchId
78
+ */
79
+ public function setSubMchId ($ mchId )
80
+ {
81
+ $ this ->setParameter ('sub_mch_id ' , $ mchId );
82
+ }
83
+
84
+ /**
85
+ * 子商户 app_id
86
+ *
87
+ * @return mixed
88
+ */
89
+ public function getSubAppId ()
90
+ {
91
+ return $ this ->getParameter ('sub_appid ' );
92
+ }
93
+
94
+
95
+ /**
96
+ * @param mixed $subAppId
97
+ */
98
+ public function setSubAppId ($ subAppId )
99
+ {
100
+ $ this ->setParameter ('sub_appid ' , $ subAppId );
101
+ }
66
102
}
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ public function getData()
31
31
$ data = array (
32
32
'appid ' => $ this ->getAppId (),
33
33
'mch_id ' => $ this ->getMchId (),
34
+ 'sub_appid ' => $ this ->getSubAppId (),
35
+ 'sub_mch_id ' => $ this ->getSubMchId (),
34
36
'out_trade_no ' => $ this ->getOutTradeNo (),
35
37
'nonce_str ' => md5 (uniqid ()),
36
38
);
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public function getData()
30
30
$ data = array (
31
31
'appid ' => $ this ->getAppId (),//*
32
32
'mch_id ' => $ this ->getMchId (),
33
+ 'sub_mch_id ' => $ this ->getSubMchId (),
33
34
'device_info ' => $ this ->getDeviceInfo (),//*
34
35
'body ' => $ this ->getBody (),//*
35
36
'detail ' => $ this ->getDetail (),
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ public function getData()
45
45
$ data = array (
46
46
'appid ' => $ this ->getAppId (),//*
47
47
'mch_id ' => $ this ->getMchId (),
48
+ 'sub_appid ' => $ this ->getSubAppId (),
49
+ 'sub_mch_id ' => $ this ->getSubMchId (),
48
50
'device_info ' => $ this ->getDeviceInfo (),//*
49
51
'body ' => $ this ->getBody (),//*
50
52
'detail ' => $ this ->getDetail (),
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ public function getData()
35
35
$ data = array (
36
36
'appid ' => $ this ->getAppId (),
37
37
'mch_id ' => $ this ->getMchId (),
38
+ 'sub_appid ' => $ this ->getSubAppId (),
39
+ 'sub_mch_id ' => $ this ->getSubMchId (),
38
40
'transaction_id ' => $ this ->getTransactionId (),
39
41
'out_trade_no ' => $ this ->getOutTradeNo (),
40
42
'nonce_str ' => md5 (uniqid ()),
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ public function getData()
39
39
$ data = array (
40
40
'appid ' => $ this ->getAppId (),
41
41
'mch_id ' => $ this ->getMchId (),
42
+ 'sub_appid ' => $ this ->getSubAppId (),
43
+ 'sub_mch_id ' => $ this ->getSubMchId (),
42
44
'device_info ' => $ this ->getDeviceInfo (),
43
45
'transaction_id ' => $ this ->getTransactionId (),
44
46
'out_trade_no ' => $ this ->getOutTradeNo (),
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ public function getData()
32
32
$ data = array (
33
33
'appid ' => $ this ->getAppId (),
34
34
'mch_id ' => $ this ->getMchId (),
35
+ 'sub_appid ' => $ this ->getSubAppId (),
36
+ 'sub_mch_id ' => $ this ->getSubMchId (),
35
37
'device_info ' => $ this ->getDeviceInfo (),//<>
36
38
'transaction_id ' => $ this ->getTransactionId (),
37
39
'out_trade_no ' => $ this ->getOutTradeNo (),
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public function getData()
31
31
$ data = array (
32
32
'appid ' => $ this ->getAppId (),
33
33
'mch_id ' => $ this ->getMchId (),
34
+ 'sub_mch_id ' => $ this ->getSubMchId (),
34
35
'long_url ' => $ this ->getLongUrl (),
35
36
'nonce_str ' => md5 (uniqid ()),
36
37
);
You can’t perform that action at this time.
0 commit comments