From 068f3f8b068814783edb4ba19c5e8fc3a148f894 Mon Sep 17 00:00:00 2001 From: long <452591453@qq.com> Date: Thu, 10 Sep 2026 12:17:06 +0800 Subject: [PATCH] docs: record EJ medicine sync execution --- .../VERIFICATION.txt | 37 ++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/artifacts/ej-medicine-incremental-sync/VERIFICATION.txt b/artifacts/ej-medicine-incremental-sync/VERIFICATION.txt index d50e786fa..7164cb935 100644 --- a/artifacts/ej-medicine-incremental-sync/VERIFICATION.txt +++ b/artifacts/ej-medicine-incremental-sync/VERIFICATION.txt @@ -1,6 +1,6 @@ OBJECT=ZYT_TO_EJ_INCREMENTAL_MEDICINE_SYNC -RESULT=NON_DESTRUCTIVE_INCREMENTAL_PUSH_DEPLOYED_AND_PRODUCTION_DRY_RUN_VERIFIED -NEXT=RUN_PRODUCTION_APPLY_ONLY_AFTER_EXPLICIT_AUTHORIZATION +RESULT=NON_DESTRUCTIVE_INCREMENTAL_PUSH_DEPLOYED_EXECUTED_AND_VERIFIED +NEXT=RETRY_THE_PREVIOUSLY_FAILED_PHARMACY_ORDER BRANCH_ZYT=codex/ej-medicine-incremental-sync BRANCH_EJ=codex/ej-additive-medicine-import ZYT_COMMIT=17e9e7b6b @@ -94,7 +94,7 @@ INPUT=detached copies at ZYT 27fbef932 and EJ a7439cc with clarified diffs appli LITERAL_OUTPUT=ROLLBACK_OK: ZYT incremental push removed; EJ unrelated-catalog preflight restored. EXIT_STATUS=0 ROLLBACK_RESULT=AFTER_ZYT=0; AFTER_EJ=0; both copies restored to clean base behavior/status -CURRENT_STATUS=ZYT and EJ code deployed to production with matching hashes and PHP-FPM reloaded; production dry-run passed; production apply was not run +CURRENT_STATUS=ZYT and EJ code deployed; EJ import enabled only for merchant ZYT; production incremental apply completed; target medicine is active; zero deletes RESTORED_BEHAVIOR=ROLLBACK removes the ZYT push command/service/docs/tests and restores EJ bootstrap-only unrelated-catalog rejection DEPLOYMENT_1: @@ -132,5 +132,32 @@ DEPLOYMENT_RESULT=public admin and EJ gateway are reachable; EJ authentication m PRODUCTION_BACKUP=/www/deploy-backups/ej-medicine-sync-20260910-120752 PRODUCTION_ROLLBACK=/www/deploy-backups/ej-medicine-sync-20260910-120752/ROLLBACK.sh -PRODUCTION_ROLLBACK_CHECK=bash -n exit 0; ZYT_BACKUP_FILES=2; EJ_BACKUP_FILES=3 -PRODUCTION_APPLY=NOT_RUN +PRODUCTION_ROLLBACK_CHECK=bash -n exit 0; ZYT_BACKUP_FILES=2; EJ_BACKUP_FILES=3; EJ env restore and PHP-FPM reload included +PRODUCTION_APPLY=SUCCESS + +APPLY_1: +COMMAND=cd /www/wwwroot/zyt/server && php think ej-pharmacy:push-medicines --apply --confirm=INCREMENTAL_NO_DELETE --batch-size=100 --run-id=repair-20260910 +INPUT=production source=654 candidates=654; EJ import feature flag initially false +LITERAL_OUTPUT=恩济药材导入失败 HTTP 403:Medicine import is disabled +EXIT_STATUS=1 +CORRECTION=backed up /www/wwwroot/ej/server/.env; set PHARMACY_MEDICINE_IMPORT_ENABLED=true; retained PHARMACY_MEDICINE_IMPORT_ALLOWED_MERCHANTS=ZYT; reloaded PHP-FPM + +APPLY_2: +COMMAND=cd /www/wwwroot/zyt/server && php think ej-pharmacy:push-medicines --apply --confirm=INCREMENTAL_NO_DELETE --batch-size=100 --run-id=repair-20260910 +INPUT=production after EJ import enablement restricted to merchant ZYT +LITERAL_OUTPUT=incremental 完成 run_id=repair-20260910 source=654 candidates=654 batches=7 remote_created=0 remote_existing=654 preserved_inactive=0 catalog_created=0 catalog_updated=654 mapping_created=0 mapping_updated=0 mapping_unchanged=654 remote_delete=0 local_delete=0 +EXIT_STATUS=0 +APPLY_RESULT=seven EJ import batches completed; no remote or local deletes; existing mappings retained + +APPLY_3: +COMMAND=signed EJ GET catalog verification through EjPharmacyClient and EjMedicineCatalogSyncPolicy +INPUT=target medicine_code EJ954E7F38D7E3 +LITERAL_OUTPUT=REMOTE_RECEIVED=670; TARGET_CODE=EJ954E7F38D7E3; TARGET_NAME=生地黄; TARGET_STATUS=1; CATALOG_VERSION=1371; VERIFY_EXIT=0 +EXIT_STATUS=0 +APPLY_RESULT=previously rejected target medicine is present and active; EJ catalog still contains 670 rows versus 654 ZYT source medicines, so EJ-only medicines remain present + +APPLY_4: +COMMAND=tail production EJ nginx access/error logs +INPUT=/api/openapi/v1/medicine-imports after 2026-09-10 12:14:51 +0800 +LITERAL_OUTPUT=seven POST requests returned HTTP 201; no new medicine import PHP/upstream errors +EXIT_STATUS=0