File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class RequestMsg extends SplBean
2222 protected $ MsgType ;
2323 protected $ Content ;
2424 protected $ MsgId ;
25+ protected $ MsgID ;
2526 protected $ Event ;
2627 protected $ EventKey ;
2728 protected $ Ticket ;
@@ -125,7 +126,15 @@ public function setContent($Content): void
125126 */
126127 public function getMsgId ()
127128 {
128- return $ this ->MsgId ;
129+ if (!empty ($ this ->MsgId )) {
130+ return $ this ->MsgId ;
131+ }
132+
133+ if (!empty ($ this ->MsgID )) {
134+ return $ this ->MsgID ;
135+ }
136+
137+ return null ;
129138 }
130139
131140 /**
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ public function send(MsgBean $templateMsg) : bool
2626 'ACCESS_TOKEN ' => $ this ->getOfficialAccount ()->accessToken ()->getToken ()
2727 ]);
2828
29- $ templateMsg ->setAppid ($ this ->getOfficialAccount ()->getConfig ()->getAppId ());
3029 $ response = NetWork::postJsonForJson ($ url , $ templateMsg ->getSendMessage ());
3130 $ this ->hasException ($ response );
3231 return true ;
You can’t perform that action at this time.
0 commit comments