Skip to content

Commit

Permalink
fix: 上传msg字段内容兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
kisslove committed Nov 21, 2023
1 parent 5302224 commit 770572c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend_server/business/apiInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ exports.list = async (req) => {
};

exports.create = (data) => {
data.msg = data.msg == "{}" ? '' : data.msg
var temp = new ApiModel(data);
temp.save(function (err, r) {
if (err) {
Expand Down

0 comments on commit 770572c

Please sign in to comment.