1
0
forked from erp-dev/erp

server push

This commit is contained in:
2026-04-04 00:40:52 +08:00
parent 76b30cf4f4
commit d7bc43082e
6 changed files with 582472 additions and 18 deletions

10
.env
View File

@@ -1,11 +1,11 @@
SECRET_KEY=testing_$weak_secret_is_allowd
DEBUG=True
ALLOWED_HOSTS=yuwenerp.yuwen.cloud,localhost,
DB_HOST=127.0.0.1
DB_PORT=5432
DB_HOST=pgm-7xvr252q2037b3s5.pg.rds.aliyuncs.com
DB_PORT=6432
DB_NAME=flower
DB_USER=postgres
DB_PASSWORD=postgres
DB_USER=flower
DB_PASSWORD=flower_pg_zuowei1216
PRINTING_SALES_ITEM_SOURCE_STATE_ID=2
WECOM_WEBHOOK_KEY=
PRINTING_JOB_STATE_ADVANCED_FOLLOWUP_URL_TEMPLATE=https://app.yuwen.cloud/workstation/production/batch-advance?orderId={order_id}
PRINTING_JOB_STATE_ADVANCED_FOLLOWUP_URL_TEMPLATE=https://app.yuwen.cloud/workstation/production/batch-advance?orderId={order_id}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -480,7 +480,7 @@ STATEFLOW_CURRENT_STATE_MODE = 'NEXT'
PRINTING_DEFAULT_PROCESS_ID = 1 # 默认印染流程ID
PRINTING_EXTERNAL_RECORDS_BASE_URL = 'http://43.139.183.222:18080'
PRINTING_EXTERNAL_RECORDS_AUTHORIZATION = 'your-fixed-authorization-secret'
PRINTING_EXTERNAL_SYNC_USER_ID = 1
PRINTING_EXTERNAL_SYNC_USER_ID = 2
PRINTING_EXTERNAL_SYNC_PRODUCT_CATEGORY_ID = None
PLATE_ORDER_DEFAULT_PROCESS_ID = 2 # 默认开版流程ID
@@ -557,18 +557,18 @@ CELERY_BEAT_SCHEDULE = {
minute=SETTLEMENT_RUN_MINUTE
),
},
# 'daily_plate_order_tiia_image_upload': {
# 'task': 'printing.tasks.upload_yesterday_plate_order_images_to_tencent_tiia',
# 'schedule': crontab(hour=3, minute=0),
# },
# 'daily_mdy_plate_order_staging_tiia_image_upload': {
# 'task': 'api_v1.tasks.upload_mdy_plate_order_staging_images_to_tencent_tiia',
# 'schedule': crontab(hour=3, minute=20),
# 'kwargs': {
# 'batch_size': 500,
# 'dry_run': False,
# },
# },
'daily_plate_order_tiia_image_upload': {
'task': 'printing.tasks.upload_yesterday_plate_order_images_to_tencent_tiia',
'schedule': crontab(hour=3, minute=0),
},
'daily_mdy_plate_order_staging_tiia_image_upload': {
'task': 'api_v1.tasks.upload_mdy_plate_order_staging_images_to_tencent_tiia',
'schedule': crontab(hour=3, minute=20),
'kwargs': {
'batch_size': 500,
'dry_run': False,
},
},
'mdy_product_sync': {
'task': 'api_v1.tasks.sync_mdy_products',
'schedule': crontab(minute='*/10'),

582454
tiia_worker.log Normal file

File diff suppressed because it is too large Load Diff