(type)
| 837 | } |
| 838 | |
| 839 | function getPostBody(type) { |
| 840 | let taskBody = ''; |
| 841 | if (type === 'help') { |
| 842 | taskBody = `functionId=zoo_collectScore&body=${JSON.stringify({"taskId": 2,"inviteId":$.inviteId,"actionType":1,"ss" :getBody()})}&client=wh5&clientVersion=1.0.0` |
| 843 | } else if (type === 'pkHelp') { |
| 844 | taskBody = `functionId=zoo_pk_assistGroup&body=${JSON.stringify({"confirmFlag": 1,"inviteId" : $.pkInviteId,"ss" : getBody()})}&client=wh5&clientVersion=1.0.0`; |
| 845 | } else if (type === 'zoo_collectProduceScore') { |
| 846 | taskBody = `functionId=zoo_collectProduceScore&body=${JSON.stringify({"ss" :getBody()})}&client=wh5&clientVersion=1.0.0`; |
| 847 | } else if(type === 'zoo_getWelfareScore'){ |
| 848 | taskBody = `functionId=zoo_getWelfareScore&body=${JSON.stringify({"type": 2,"currentScence":$.currentScence,"ss" : getBody()})}&client=wh5&clientVersion=1.0.0`; |
| 849 | } else if(type === 'add_car'){ |
| 850 | taskBody = `functionId=zoo_collectScore&body=${JSON.stringify({"taskId": $.taskId,"taskToken":$.taskToken,"actionType":1,"ss" : getBody()})}&client=wh5&clientVersion=1.0.0` |
| 851 | }else{ |
| 852 | taskBody = `functionId=${type}&body=${JSON.stringify({"taskId": $.oneTask.taskId,"actionType":1,"taskToken" : $.oneActivityInfo.taskToken,"ss" : getBody()})}&client=wh5&clientVersion=1.0.0` |
| 853 | } |
| 854 | return taskBody |
| 855 | } |
| 856 | |
| 857 | /** |
| 858 | * 随机从一数组里面取 |
no test coverage detected