|
@@ -409,7 +409,13 @@ class oa2DiscoveryDevice(TemplateView):
|
|
return response.json(0, res={'msg': 'error'})
|
|
return response.json(0, res={'msg': 'error'})
|
|
|
|
|
|
#新增
|
|
#新增
|
|
-def testRunSendStop(UID, PWD, MSG):
|
|
|
|
|
|
+def testRunSendStop(request):
|
|
|
|
+ request.encoding = 'utf-8'
|
|
|
|
+ if request.method == 'GET':
|
|
|
|
+ request_dict = request.GET
|
|
|
|
+ UID=request_dict.get('UID', None)
|
|
|
|
+ PWD=request_dict.get('PWD', None)
|
|
|
|
+ MSG=request_dict.get('MSG', None)
|
|
command = "./pushtool {UID} {PWD} {MSG} 0".format(UID=UID, PWD=PWD, MSG=MSG)
|
|
command = "./pushtool {UID} {PWD} {MSG} 0".format(UID=UID, PWD=PWD, MSG=MSG)
|
|
print('command=>{command}'.format(command=command))
|
|
print('command=>{command}'.format(command=command))
|
|
try:
|
|
try:
|