riku
2022-09-15 bd3a9d7086f5a428b385599ba2cb08299b22c0df
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)