MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / submitWeChat

Function submitWeChat

web/src/components/settings/SystemSetting.js:283–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281 };
282
283 const submitWeChat = async () => {
284 const options = [];
285
286 if (originInputs['WeChatServerAddress'] !== inputs.WeChatServerAddress) {
287 options.push({
288 key: 'WeChatServerAddress',
289 value: removeTrailingSlash(inputs.WeChatServerAddress),
290 });
291 }
292 if (
293 originInputs['WeChatAccountQRCodeImageURL'] !==
294 inputs.WeChatAccountQRCodeImageURL
295 ) {
296 options.push({
297 key: 'WeChatAccountQRCodeImageURL',
298 value: inputs.WeChatAccountQRCodeImageURL,
299 });
300 }
301 if (
302 originInputs['WeChatServerToken'] !== inputs.WeChatServerToken &&
303 inputs.WeChatServerToken !== ''
304 ) {
305 options.push({
306 key: 'WeChatServerToken',
307 value: inputs.WeChatServerToken,
308 });
309 }
310
311 if (options.length > 0) {
312 await updateOptions(options);
313 }
314 };
315
316 const submitGitHubOAuth = async () => {
317 const options = [];

Callers

nothing calls this directly

Calls 2

removeTrailingSlashFunction · 0.90
updateOptionsFunction · 0.85

Tested by

no test coverage detected