routerAdd('POST', '/api/wechat/profile', function (e) {
    const { success } = require(`${__hooks}/bai_api_pb_hooks/bai_api_shared/utils/response.js`)
    const guards = require(`${__hooks}/bai_api_pb_hooks/bai_api_shared/middlewares/requestGuards.js`)
    const userService = require(`${__hooks}/bai_api_pb_hooks/bai_api_shared/services/userService.js`)

    guards.requireJson(e)
    const authState = guards.requireAuthUser(e)
    guards.duplicateGuard(e)

    const payload = guards.validateProfileBody(e)
    const data = userService.updateWechatUserProfile(authState.openid, payload)

    return success(e, '信息更新成功', data)
})


