Skip to content

Commit d1fcdb4

Browse files
committed
pushExt 属性添加类型校验
1 parent b624ca9 commit d1fcdb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rongcloud/message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def send(self, from_user_id, to_user_ids, object_name, content, push_content=Non
154154
self._check_param(content_available, int, '0~1')
155155
self._check_param(expansion, bool)
156156
self._check_param(disable_push, bool)
157+
self._check_param(push_ext, str)
157158
return self._http_post(url, self._render(param_dict, format_str))
158159
except ParamException as e:
159160
return json.loads(str(e))

0 commit comments

Comments
 (0)