MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / check_cloud_args

Method check_cloud_args

class/databaseModel/base.py:256–265  ·  view source on GitHub ↗

验证参数是否合法 @get param @args 参数列表

(self, get, nlist=[])

Source from the content-addressed store, hash-verified

254 # ******************************************** 远程数据库 ******************************************/
255
256 def check_cloud_args(self, get, nlist=[]):
257 """
258 验证参数是否合法
259 @get param
260 @args 参数列表
261 """
262 for key in nlist:
263 if not key in get:
264 return public.returnMsg(False, '参数传递错误,缺少参数{}!'.format(key))
265 return public.returnMsg(True, '通过!')
266
267 def check_cloud_database(self, args):
268 '''

Callers 2

AddBaseCloudServerMethod · 0.95
ModifyBaseCloudServerMethod · 0.95

Calls 2

returnMsgMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected