算法名称:Front end release job part code | ||
输入:String data.tc_just, data.tc ,data.text, data.text2, data.ueserid, data.cascader, data.zymc, data.time, data.secid, data.cpid | ||
输出:data.tc_content, data.tc_just, data.tc, data.text, data.text2 | ||
步骤1: | if data.tc_just ==="1" then | |
步骤2: |
| data.tc=false; return; |
步骤3: | All "\" in "data.text "and "data.text2" are replaced with "\ \" through the for loop and recorded in new_data and new_ANS. | |
步骤4: | Pass "data.ueserid", "data.cascader", "data.zymc", "data.time", "data.secid", "data.cpid" new_data", "new_ANS" and a function to the API named "submit_que". | |
步骤5: | In function from the previous step, ifparam.result === true then | |
步骤6: |
| data.tc_content="上传成功", data.tc_just="1", data.tc=true, data.text="", data.text2="" |