Initial qiwei secondary development handoff

This commit is contained in:
2026-06-23 21:11:20 +08:00
commit 858cb68f4f
207 changed files with 52782 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package main
import "net/http"
func handleWxWorkNewInstance(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodPost {
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
return
}
bundle := resolveDLLBundle()
if bundle.HelperPath == "" {
sendJSONResponse(w, http.StatusInternalServerError, map[string]interface{}{
"success": false,
"message": "helper DLL is unavailable: " + bundle.Message,
})
return
}
result, err := startAdditionalWxWorkInstance(bundle.HelperPath)
if err != nil {
sendJSONResponse(w, http.StatusInternalServerError, map[string]interface{}{
"success": false,
"message": err.Error(),
})
return
}
sendJSONResponse(w, http.StatusOK, result)
}