chengjie hace 7 meses
padre
commit
f5b371b327
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      src/model/mps.js

+ 13 - 0
src/model/mps.js

@@ -133,6 +133,19 @@ class MPS {
133 133
         return await query(sql, [param]);
134 134
     }
135 135
 
136
+    static async UpdateMPSWish(param) {
137
+        try {
138
+            const sql = "Update MPS_Wish SET ? where ID=?;";
139
+            return await query(sql, [param, param.ID]);
140
+        } catch (error) {
141
+            console.error('更新祝福信息失败:', error);
142
+            throw error;
143
+        }
144
+    }
145
+
146
+
147
+};
148
+
136 149
     /**
137 150
      * 获取祝福语
138 151
      * @param {Object} param 查询参数