api.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. import {
  2. baseUrl,
  3. baseApiUrl
  4. } from './config.js';
  5. import * as common from './common.js' //引入common
  6. import * as db from './db.js' //引入common
  7. // 需要登陆的,都写到这里,否则就是不需要登陆的接口
  8. let methodsToken = ['profile', 'refreshUser', 'wxLogin', 'changeMobile', 'addCart',
  9. 'previewOrder', 'getWuyuanUser', 'archives_post', 'get_channel_fields', 'get_channel', 'lists', 'details',
  10. 'logOffVolunteer', 'getCrProperty', 'joinTeam', 'getTeamMember', 'getPatrolTask', 'claimCr',
  11. 'getPatrolLog', 'claimCrList', 'claimCrDetails', 'editMainBodyUser', , 'contribute',
  12. 'getPatrolTaskDetails', 'getContentDetail', 'examineVolunteer', 'userManageRegionCrAuth', 'applyVolunteer',
  13. 'getPhoneNumber', 'editApplyVolunteer', 'mobileBindVolunteer', 'getTeamDetails', 'examineTask', 'removeMemberm',
  14. 'getScoreLog', 'rankingList', 'getMainBodyColumnContentList', 'regionData', 'cityData', 'checkIn',
  15. 'getMainBodyUser', 'getUserContribute', 'getUserHonor', 'submitTask', 'exportPatrolRecord', 'userManageCrAuth',
  16. 'getDevices'
  17. ];
  18. const post = (method, data, callback, type, orgurl) => {
  19. let userToken = '';
  20. let auth = '';
  21. // 判断token是否存在
  22. console.log("method: ", method);
  23. if (methodsToken.indexOf(method) >= 0) {
  24. // 获取用户token
  25. let auth = db.get("auth");
  26. // console.log(auth);
  27. let nowdate = (new Date()) / 1000; //当前时间戳
  28. //新增用户判断是否登录逻辑begin
  29. common.isLogin();
  30. //新增用户判断是否登录逻辑end
  31. if (!auth || auth.createtime + auth.expires_in < nowdate) {
  32. common.toLogin();
  33. return false;
  34. } else {
  35. userToken = auth.token;
  36. }
  37. }
  38. if (type) {
  39. method = type + '/' + method
  40. } else {
  41. method = '/' + method
  42. }
  43. let realurl = baseApiUrl + method;
  44. if (orgurl) {
  45. realurl = baseUrl + orgurl;
  46. }
  47. uni.showLoading({
  48. title: '',
  49. icon: 'loading'
  50. });
  51. uni.request({
  52. url: realurl,
  53. data: data,
  54. header: {
  55. 'Accept': 'application/json',
  56. 'Content-Type': 'application/x-www-form-urlencoded',
  57. 'token': userToken,
  58. '__token__': userToken
  59. },
  60. method: 'POST',
  61. success: (response) => {
  62. uni.hideLoading();
  63. const result = response.data
  64. if (result.msg == 'Please login' || result.msg == '请登陆') {
  65. db.del("user");
  66. db.del("auth");
  67. console.log('未登陆')
  68. uni.showToast({
  69. title: result.msg,
  70. icon: 'none',
  71. duration: 2000,
  72. complete: function() {
  73. uni.reLaunch({
  74. url: '/pages/index/index',
  75. })
  76. }
  77. });
  78. }
  79. callback(result);
  80. },
  81. fail: (error) => {
  82. uni.hideLoading();
  83. if (error && error.response) {
  84. showError(error.response);
  85. }
  86. },
  87. });
  88. }
  89. // 上传图片
  90. export const uploadImage = (method, data = {}, callback, num = 9, type) => {
  91. if (type) {
  92. method = type + '/' + method
  93. } else {
  94. method = method
  95. }
  96. let userToken = '';
  97. let auth = db.get("auth");
  98. userToken = auth.token;
  99. uni.chooseImage({
  100. count: num,
  101. success: (res) => {
  102. uni.showLoading({
  103. title: '上传中...'
  104. });
  105. let tempFilePaths = res.tempFilePaths
  106. for (var i = 0; i < tempFilePaths.length; i++) {
  107. data.file = tempFilePaths[i]
  108. uni.uploadFile({
  109. url: baseApiUrl + method,
  110. filePath: tempFilePaths[i],
  111. fileType: 'image',
  112. name: 'file',
  113. headers: {
  114. 'Accept': 'application/json',
  115. 'Content-Type': 'multipart/form-data',
  116. 'token': userToken
  117. },
  118. formData: data,
  119. success: (uploadFileRes) => {
  120. callback(JSON.parse(uploadFileRes.data))
  121. },
  122. fail: (error) => {
  123. if (error && error.response) {
  124. common.showError(error.response);
  125. }
  126. },
  127. complete: () => {
  128. setTimeout(function() {
  129. uni.hideLoading();
  130. }, 250);
  131. },
  132. });
  133. }
  134. }
  135. });
  136. }
  137. const get = (url, callback) => {
  138. uni.showLoading({
  139. title: '加载中'
  140. });
  141. let realurl = baseUrl + url;
  142. if (url.indexOf('http:') >= 0 || url.indexOf('https:') >= 0) {
  143. let realurl = url;
  144. }
  145. uni.request({
  146. url: realurl,
  147. header: {
  148. 'Accept': 'application/json',
  149. 'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
  150. },
  151. method: 'GET',
  152. success: (response) => {
  153. callback(response.data);
  154. },
  155. fail: (error) => {
  156. if (error && error.response) {
  157. showError(error.response);
  158. }
  159. },
  160. complete: () => {
  161. setTimeout(function() {
  162. uni.hideLoading();
  163. }, 250);
  164. }
  165. });
  166. }
  167. const showError = error => {
  168. let errorMsg = ''
  169. switch (error.status) {
  170. case 400:
  171. errorMsg = '请求参数错误'
  172. break
  173. case 401:
  174. errorMsg = '未授权,请登录'
  175. break
  176. case 403:
  177. errorMsg = '跨域拒绝访问'
  178. break
  179. case 404:
  180. errorMsg = `请求地址出错: ${error.config.url}`
  181. break
  182. case 408:
  183. errorMsg = '请求超时'
  184. break
  185. case 500:
  186. errorMsg = '服务器内部错误'
  187. break
  188. case 501:
  189. errorMsg = '服务未实现'
  190. break
  191. case 502:
  192. errorMsg = '网关错误'
  193. break
  194. case 503:
  195. errorMsg = '服务不可用'
  196. break
  197. case 504:
  198. errorMsg = '网关超时'
  199. break
  200. case 505:
  201. errorMsg = 'HTTP版本不受支持'
  202. break
  203. default:
  204. errorMsg = error.msg
  205. break
  206. }
  207. uni.showToast({
  208. title: errorMsg,
  209. icon: 'none',
  210. duration: 2000
  211. });
  212. }
  213. const syncget = (url, data) => {
  214. return new Promise(function(resolve, reject) {
  215. get(url + queryParams(data, true), (result) => {
  216. try {
  217. resolve(result);
  218. } catch (e) {
  219. reject(e);
  220. }
  221. })
  222. })
  223. }
  224. const syncpost = (f, m, d) => {
  225. return new Promise(function(resolve, reject) {
  226. post(f, d, (result) => {
  227. try {
  228. resolve(result);
  229. } catch (e) {
  230. reject(e);
  231. }
  232. }, m, m);
  233. })
  234. }
  235. // 登录
  236. export const third = (data, callback) => post('third', data, callback, 'content/main_body_user');
  237. // 用户绑定手机
  238. export const bindphone = (data, callback) => post('bind', data, callback, 'discover/User');
  239. // 修改用户信息
  240. export const profile = (data, callback) => post('profile', data, callback, 'discover/User');
  241. // 发送验证码
  242. export const sendSmsVerify = (data, callback) => post('sendSmsVerify', data, callback, 'discover/User');
  243. // 刷新用户
  244. export const refreshUser = (data, callback) => post('refreshUser', data, callback, 'content/main_body_user');
  245. // 注册
  246. export const register = (data, callback) => post('register', data, callback, 'discover/User');
  247. // 登录
  248. export const login = (data, callback) => post('login', data, callback, 'discover/User');
  249. // 退出登录
  250. export const logout = (data, callback) => post('logout', data, callback, 'discover/User');
  251. // 上传头像
  252. export const upload = (data, callback) => post('upload', data, callback, 'discover/Ajax');
  253. // 绑定手机
  254. export const changeMobile = (data, callback) => post('changeMobile', data, callback, 'discover/User');
  255. //获取手机号前先登录
  256. export const wxLogin = (data, callback) => post('wxLogin', data, callback, 'user');
  257. //获取手机号
  258. // export const getMobile = (data, callback) => post('getPhoneNumber', data, callback, 'user');
  259. //取CMS配置
  260. export const getConfig = async (params = {}) => await syncget('addons/cms/api.common/init', params);
  261. function queryParams(data = {}, isPrefix = true, arrayFormat = 'brackets') {
  262. let prefix = isPrefix ? '?' : ''
  263. let _result = []
  264. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  265. for (let key in data) {
  266. let value = data[key]
  267. // 去掉为空的参数
  268. if (['', undefined, null].indexOf(value) >= 0) {
  269. continue;
  270. }
  271. if (value.length > 0) {
  272. value = value.replace(/%/g, "%25");
  273. value = value.replace(/\&/g, "%26");
  274. value = value.replace(/\+/g, "%2B");
  275. }
  276. // 如果值为数组,另行处理
  277. if (value.constructor === Array) {
  278. // e.g. {ids: [1, 2, 3]}
  279. switch (arrayFormat) {
  280. case 'indices':
  281. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  282. for (let i = 0; i < value.length; i++) {
  283. _result.push(key + '[' + i + ']=' + value[i])
  284. }
  285. break;
  286. case 'brackets':
  287. // 结果: ids[]=1&ids[]=2&ids[]=3
  288. value.forEach(_value => {
  289. _result.push(key + '[]=' + _value)
  290. })
  291. break;
  292. case 'repeat':
  293. // 结果: ids=1&ids=2&ids=3
  294. value.forEach(_value => {
  295. _result.push(key + '=' + _value)
  296. })
  297. break;
  298. case 'comma':
  299. // 结果: ids=1,2,3
  300. let commaStr = "";
  301. value.forEach(_value => {
  302. commaStr += (commaStr ? "," : "") + _value;
  303. })
  304. _result.push(key + '=' + commaStr)
  305. break;
  306. default:
  307. value.forEach(_value => {
  308. _result.push(key + '[]=' + _value)
  309. })
  310. }
  311. } else {
  312. _result.push(key + '=' + value)
  313. }
  314. }
  315. return _result.length ? prefix + _result.join('&') : ''
  316. }
  317. // 模型的主体栏目列表
  318. export const getColumnList = (data, callback) => post('getColumnList', data, callback,
  319. 'content/main_body_column');
  320. // 内容详情
  321. export const getContentDetail = (data, callback) => post('getContentDetail', data, callback,
  322. 'content/content');
  323. // 模型内容列表
  324. export const getContentList = (data, callback) => post('getContentList', data, callback,
  325. 'content/content');
  326. // 模型主体栏目的内容列表
  327. export const getMainBodyColumnContentList = (data, callback) => post('getMainBodyColumnContentList', data, callback,
  328. 'content/content');
  329. // 培训分类列表
  330. export const getCategoryList = (data, callback) => post('getCategoryList', data, callback, '',
  331. 'addons/yuneducation/course/getCategoryList');
  332. // 学院底部课程
  333. export const getHomeData = (data, callback) => post('getHomeData', data, callback, '',
  334. 'addons/yuneducation/page/getHomeData');
  335. // 课程界面数据
  336. export const getCourseList = (data, callback) => post('getCourseList', data, callback, '',
  337. 'addons/yuneducation/course/getCourseList');
  338. // 课程详情
  339. export const getCourseDetail = (data, callback) => post('getCourseDetail', data, callback, '',
  340. 'addons/yuneducation/course/getCourseDetail');
  341. // 获取课程考核
  342. export const getCourseExamine = (data, callback) => post('getCourseExamine', data, callback, '',
  343. 'addons/yuneducation/course/getCourseExamine');
  344. // 课程开始学习
  345. export const startLearn = (data, callback) => post('startLearn', data, callback, '',
  346. 'addons/yuneducation/course/startLearn');
  347. // 加入购物车
  348. export const addCart = (data, callback) => post('addCart', data, callback, '',
  349. 'addons/yuneducation/order/addCart');
  350. // 预览订单
  351. export const previewOrder = (data, callback) => post('previewOrder', data, callback, '',
  352. 'addons/yuneducation/order/previewOrder');
  353. // 提交订单
  354. export const submitOrder = (data, callback) => post('submitOrder', data, callback, '',
  355. 'addons/yuneducation/order/submitOrder');
  356. // 移除购物车
  357. export const removeCart = (data, callback) => post('removeCart', data, callback, '',
  358. 'addons/yuneducation/order/removeCart');
  359. // 讲师详情
  360. export const getTeacherDetail = (data, callback) => post('getTeacherDetail', data, callback, '',
  361. 'addons/yuneducation/teacher/getTeacherDetail');
  362. // 获取培训列表
  363. export const getScheduleList = (data, callback) => post('getScheduleList', data, callback, '',
  364. 'addons/yuneducation/schedule/getScheduleList');
  365. // 获取培训详情
  366. export const getScheduleDetail = (data, callback) => post('getScheduleDetail', data, callback, '',
  367. 'addons/yuneducation/schedule/getScheduleDetail');
  368. // 培训开始学习
  369. export const scheduleStartLearn = (data, callback) => post('startLearn', data, callback, '',
  370. 'addons/yuneducation/schedule/startLearn');
  371. // 获取我的课程列表
  372. export const getMineCourseList = (data, callback) => post('getMineCourseList', data, callback, '',
  373. 'addons/yuneducation/course/getMineCourseList');
  374. // 试播
  375. // export const getContentDetail = (data, callback) => post('getContentDetail', data, callback, '',
  376. // 'addons/yuneducation/course/getContentDetail');
  377. //获取栏目
  378. export const getChannel = async (params = {}) => await syncpost('get_channel', '/addons/cms/api.archives/get_channel',
  379. params);
  380. //我发的文章
  381. export const myArchives = async (params = {}) => await syncpost('my', '/addons/cms/api.archives/my', params);
  382. // 文物管理相关
  383. //场馆详情页获取管理员权限
  384. export const userManageCrAuth = (data, callback) => post('userManageCrAuth', data, callback, 'auth/user_manage_cr');
  385. export const getDevices = (data, callback) => post('getDevices', data, callback, 'zhoujie/device');
  386. //取文巡查记录
  387. export const getPatrolLog = (data, callback) => post('getPatrolLog', data, callback, 'wuyuan/volunteer');
  388. //取文物详情
  389. export const getCulturalDetails = (data, callback) => get('api/wuyuan/cultural_relic/details' + queryParams(data, true),
  390. callback);
  391. // 文物管理相关end
  392. //取轮播图
  393. export const getBannerList = (data, callback) => get('/api/wuyuan/swiper_icon/lists' + queryParams(data, true),
  394. callback);
  395. // //人物列表 传 type参数类型:inheritor=非遗传承人,history=历史人物,folklore=民俗学者,specialist=文史专家
  396. // export const getPeopleList = (data, callback) => get('api/wuyuan/biographies/lists' + queryParams(data, true), callback);
  397. // //人物详情
  398. // export const getPeopleDetails = (data, callback) => get('api/wuyuan/biographies/details' + queryParams(data, true), callback);
  399. // 获取用户信息
  400. export const getMainBodyUser = (data, callback) => post('getMainBodyUser', data, callback,
  401. 'content/main_body_user/getMainBodyUser');
  402. //修改头像
  403. export const editMainBodyUser = (data, callback) => post('editMainBodyUser', data, callback,
  404. 'content/main_body_user');
  405. //取任务列表
  406. export const getTaskList = (data, callback) => post('lists', data, callback, 'wuyuan/task');
  407. //取法律文章列表
  408. export const getArchives = async (params = {}) => await syncget('https://huli-app.wenlvti.net/addons/cms/api', params);
  409. // 积分信息
  410. export const getWuyuanUser = (data, callback) => post('getWuyuanUser', data, callback, 'wuyuan/user');
  411. //取文物分类 参数传type类型
  412. export const getCulturalRelicCategory = (data, callback) => get('api/content/category/getCategoryList' + queryParams(
  413. data,
  414. true), callback);
  415. //取级联分类
  416. export const getCategoryCascadeList = (data, callback) => get('api/content/category/getCategoryCascadeList' +
  417. queryParams(
  418. data, true), callback);
  419. // 投稿
  420. export const contribute = (data, callback) => post('contribute', data, callback, '',
  421. 'api/content/style/contribute');
  422. //取文物场景列表
  423. export const getCulturalRelic = (data, callback) => get('api/content/cultural_relic/lists' + queryParams(data, true),
  424. callback);
  425. // 志愿报名
  426. export const applyVolunteer = (data, callback) => post('applyVolunteer', data, callback, '',
  427. 'api/volunteer/volunteer/applyVolunteer');
  428. // 志愿者列表
  429. export const lists = (data, callback) => post('lists', data, callback, '', 'api/volunteer/volunteer/lists');
  430. // 志愿者详情
  431. export const details = (data, callback) => post('details', data, callback, '', 'api/volunteer/volunteer/details');
  432. // 注销志愿者
  433. export const logOffVolunteer = (data, callback) => post('logOffVolunteer', data, callback, '',
  434. 'api/volunteer/volunteer/logOffVolunteer');
  435. // 志愿者巡查文物资产列表
  436. export const getCrProperty = (data, callback) => post('getCrProperty', data, callback, '',
  437. 'api/volunteer/patrol_property/getCrProperty');
  438. // 加入志愿者团队
  439. export const joinTeam = (data, callback) => post('joinTeam', data, callback, '',
  440. 'api/volunteer/team_member/joinTeam');
  441. // 获取团队成员列表
  442. export const getTeamMember = (data, callback) => post('getTeamMember', data, callback, '',
  443. 'api/volunteer/team/getTeamMember');
  444. // 移除成员
  445. export const removeMemberm = (data, callback) => post('removeMemberm', data, callback, '',
  446. 'api/volunteer/team_member/removeMember');
  447. // 获取志愿者任务列表
  448. export const getPatrolTask = (data, callback) => post('getPatrolTask', data, callback, '',
  449. 'api/volunteer/patrol_task/getPatrolTask');
  450. // 获取任务列详情
  451. export const getPatrolTaskDetails = (data, callback) => post('getPatrolTaskDetails', data, callback, '',
  452. 'api/volunteer/patrol_task/getPatrolTaskDetails');
  453. // 提交巡查任务
  454. export const submitTask = (data, callback) => post('submitTask', data, callback, '',
  455. 'api/volunteer/patrol_task/submitTask');
  456. // 计算志愿者与文物点的距离
  457. export const distanceCheck = (data, callback) => post('distanceCheck', data, callback, '',
  458. 'api/volunteer/patrol_task/distanceCheck');
  459. // 认领文物
  460. export const claimCr = (data, callback) => post('claimCr', data, callback, '',
  461. 'api/volunteer/claim_cr/claimCr');
  462. // 认领文物列表
  463. export const claimCrList = (data, callback) => post('claimCrList', data, callback, '',
  464. 'api/volunteer/claim_cr/claimCrList');
  465. // 认领文物详情暂未调用
  466. export const claimCrDetails = (data, callback) => post('claimCrDetails', data, callback, '',
  467. 'api/volunteer/claim_cr/claimCrDetails');
  468. // 最新公告
  469. export const getNotice = (data, callback) => post('getNotice', data, callback, '',
  470. 'api/system/notice/getNotice');
  471. // 区域
  472. export const getCategoryOnlyChildList = (data, callback) => post('getCategoryOnlyChildList', data, callback, '',
  473. 'api/content/category/getCategoryOnlyChildList');
  474. // 志愿者审核
  475. export const examineVolunteer = (data, callback) => post('examineVolunteer', data, callback, '',
  476. 'api/volunteer/volunteer/examineVolunteer');
  477. // 用户区域管理文物权限
  478. export const userManageRegionCrAuth = (data, callback) => post('userManageRegionCrAuth', data, callback, '',
  479. 'api/auth/user_manage_cr/userManageRegionCrAuth');
  480. // 修改驳回志愿者信息
  481. export const editApplyVolunteer = (data, callback) => post('editApplyVolunteer', data, callback, '',
  482. 'api/volunteer/volunteer/editApplyVolunteer');
  483. // 老志愿者手机号绑定志愿者
  484. export const getPhoneNumber = (data, callback) => post('getPhoneNumber', data, callback, '',
  485. 'api/volunteer/volunteer/getPhoneNumber');
  486. // 手动绑定志愿者手机号
  487. export const mobileBindVolunteer = (data, callback) => post('mobileBindVolunteer', data, callback, '',
  488. 'api/volunteer/volunteer/mobileBindVolunteer');
  489. // 提交任务审核
  490. export const examineTask = (data, callback) => post('examineTask', data, callback, '',
  491. 'api/volunteer/patrol_task/examineTask');
  492. // 获取用户积分列表
  493. export const getScoreLog = (data, callback) => post('getScoreLog', data, callback, '',
  494. 'api/content/main_body_user/getScoreLog');
  495. // 志愿者排行
  496. export const rankingList = (data, callback) => post('rankingList', data, callback, '',
  497. 'api/volunteer/volunteer/rankingList');
  498. // 活动列表
  499. export const activityLists = (data, callback) => get('api/activity/activity/lists' + queryParams(data, true),
  500. callback);
  501. // 活动详情
  502. export const activityDetails = (data, callback) => get('api/activity/activity/details' + queryParams(data, true),
  503. callback);
  504. // 志愿者排行详情
  505. export const rankingDetails = (data, callback) => get('api/volunteer/volunteer/rankingDetails' + queryParams(data,
  506. true),
  507. callback);
  508. // 区域数据统计
  509. export const regionData = (data, callback) => post('regionData', data, callback, '',
  510. 'api/volunteer/statistics/regionData');
  511. // 市级数据统计
  512. export const cityData = (data, callback) => post('cityData', data, callback, '',
  513. 'api/volunteer/statistics/cityData');
  514. // 新闻公告
  515. export const getNewsNotice = (data, callback) => post('getNewsNotice', data, callback, '',
  516. 'api/system/notice/getNewsNotice');
  517. // 打卡
  518. export const checkIn = (data, callback) => post('checkIn', data, callback, '',
  519. 'api/content/main_body_user/checkIn');
  520. // 活动报名
  521. export const activitySignup = (data, callback) => post('activitySignup', data, callback, '',
  522. 'api/activity/activity/activitySignup');
  523. // 我的投稿
  524. export const getUserContribute = (data, callback) => post('getUserContribute', data, callback, '',
  525. 'api/content/main_body_user/getUserContribute');
  526. // 我的荣誉
  527. export const getUserHonor = (data, callback) => post('getUserHonor', data, callback, '',
  528. 'api/content/main_body_user/getUserHonor');
  529. // 轮播
  530. export const getIndexBanner = (data, callback) => post('getIndexBanner', data, callback, '',
  531. 'api/content/banner_function/getIndexBanner');
  532. // 导出
  533. export const exportPatrolRecord = (data, callback) => post('exportPatrolRecord', data, callback, '',
  534. 'api/volunteer/patrol_task/exportPatrolRecord');