XImage 微信公众号素材管理接口部署文档

9 min read

微信官方文档

https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html

部署方法

docker-compose.yaml 文件内容如下:

version: '3'
services:
  app:
    image: panw3i/x-image
    restart: always
    volumes:
      - ./app:/app/ #挂载目录
    ports:
      - "8089:8089"
  redis:
    restart: always
    image: redis

app目录下的配置文件config.yml

# 公众号配置文档: https://powerwechat.artisan-cloud.com/zh/official-account/index.html

officeAccount:
  appId: wxxxxxx
  appSecret: cexxxxx
  redisAddr: redis:6379

server:
  port: :8089