• attach

    attach

    attach 为附件类型分为三种attach //单个附件attach_i //单个附件显示为字符串attach_s //多个附件

    数据库里都是 json 数组

    入库时如果是attach,attach_i为{url:'/sadfasdfasdf/asdfasdf.jpg'}如果是attach_s为[{url:'/sadfasdfasdf/asdfasdf.jpg'},{url:'/sadfasdfasdf/asdfasdf.jpg'}]

    出库时attach 为 {url:'/sadfasdfasdf/asdfasdf.jpg'}attach_i 为/sadfasdfasdf/asdfasdf.jpgattach_s 为[{url:'/sadfasdfasdf/asdfasdf.jpg'},{url:'/sadfasdfasdf/asdfasdf.jpg'}]

    上一篇:date   下一篇:const