We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9044f commit eaab707Copy full SHA for eaab707
src/Bean/OfficialAccount/QrCodeRequest.php
@@ -129,6 +129,15 @@ public function buildRequest(): array
129
$this->action_info = [
130
'scene' => $scene
131
];
132
- return parent::toArray(['action_name', 'action_info']);
+
133
134
+ $columns = ['action_name', 'action_info'];
135
136
+ if (!is_null($this->expire_seconds) && is_numeric($this->expire_seconds)) {
137
+ $this->expire_seconds = min($this->expire_seconds, 30 * 86400);
138
+ array_push($columns,'expire_seconds');
139
+ }
140
141
+ return parent::toArray($columns);
142
}
143
0 commit comments