sync: 对齐小程序 v1.0.2 生产代码并脱敏

This commit is contained in:
MiFaZhan
2026-10-29 15:15:12 +08:00
parent a7abd476f0
commit 5fcf74deb0
423 changed files with 15001 additions and 6382 deletions
@@ -25,6 +25,22 @@ func TestAppLifecycleShouldPublishWorkerIncludesRestart(t *testing.T) {
}
}
func TestAppLifecycleFailReasonForResponseHidesInternalSQL(t *testing.T) {
reason := "save data service detail 238726 result: UPDATE `t_sim_card_info` SET `traffic_cutoff_status`=null: Error 1048 (23000)"
got := appLifecycleFailReasonForResponse("failed", reason)
want := "后台执行失败,请稍后重试;如持续失败,请联系管理员并提供批次号"
if got != want {
t.Fatalf("appLifecycleFailReasonForResponse() = %q, want %q", got, want)
}
}
func TestAppLifecycleFailReasonForResponseKeepsBusinessReason(t *testing.T) {
const reason = "当前卡片状态不允许停用数据服务"
if got := appLifecycleFailReasonForResponse("failed", reason); got != reason {
t.Fatalf("appLifecycleFailReasonForResponse() = %q, want %q", got, reason)
}
}
func TestAppLifecycleBatchInfoMatchesWorkerRestartProtocol(t *testing.T) {
operation, err := appCardLifecycleOperationByCode("restart")
if err != nil {