siteserver / sscms.photos

SSCMS V7 内容相册插件
https://sscms.com/docs/v7/official/photos/
GNU Affero General Public License v3.0
3 stars 4 forks source link

升级到 1.1.1 后 stl:photo 出现错误 #3

Open liuxcoder opened 1 year ago

liuxcoder commented 1 year ago
qmxle commented 1 year ago

看页面源代码,下面是报错信息: error: Method not found: 'System.String SSCMS.Utils.StringUtils.ParseString(System.String, System.String, System.String, Int32, Int32, Int32, System.String, Boolean, Boolean, Boolean, Boolean, System.String)'.

qmxle commented 1 year ago

原因是因为 SSCMS.dll 中 StringUtils.ParseString 确实和插件调用的方法不一样,前者比后者多了一个 bool isClearBlank 的参数。 临时的解决方法:把插件引用的这个方法,复制到主项目的 StringUtils.cs 中,重新编译,替换 SSCMS.dll。