riku
2022-08-26 9f78f3f014a3423ea3fcab8f9f1056c57cd47fc8
service/lawservice.js
@@ -3,16 +3,14 @@
module.exports = {
  //查找守法动态
  getLawRegulations: function (userId, page, sceneTypeId, fun) {
  getLawRegulations: function (userId, page, condition, fun, perPage = 30) {
    let cb = {
      url: `/laws/condition/${userId}`,
      params: {
        page: page,
        per_page: 30
        per_page: perPage
      },
      data: {
        sceneTypeId: sceneTypeId
      }
      data: condition
    }
    Object.assign(cb, fun)