From 8e2c701e23a769e35ba8beac22e8b74e038761b3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 13 Jul 2026 16:39:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20get=5Fproduct.dspy=E6=B8=85=E9=99=A4ns.o?= =?UTF-8?q?rg=5Fid=E9=98=B2=E6=AD=A2=E8=A6=86=E7=9B=96product=5Forg=5Fauth?= =?UTF-8?q?=E5=AD=90=E6=9F=A5=E8=AF=A2;=20JSON=E4=BF=AE=E5=A4=8Deditable?= =?UTF-8?q?=E5=B5=8C=E5=A5=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- json/product_list.json | 10 ++++------ wwwroot/product_list/get_product.dspy | 3 +++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/json/product_list.json b/json/product_list.json index 21405fd..5517e1e 100644 --- a/json/product_list.json +++ b/json/product_list.json @@ -38,10 +38,8 @@ } }, "editexclouded": ["id", "created_by", "created_at", "updated_at", "org_id"], - "editable": { - "new_data_url": "{{entire_url('../api/product_create.dspy')}}", - "update_data_url": "{{entire_url('../api/product_update.dspy')}}", - "delete_data_url": "{{entire_url('../api/product_delete.dspy')}}" - } + "new_data_url": "{{entire_url('/product_management/api/product_create.dspy')}}", + "update_data_url": "{{entire_url('/product_management/api/product_update.dspy')}}", + "delete_data_url": "{{entire_url('/product_management/api/product_delete.dspy')}}" } -} +} \ No newline at end of file diff --git a/wwwroot/product_list/get_product.dspy b/wwwroot/product_list/get_product.dspy index fc2a3df..9e1a6f9 100644 --- a/wwwroot/product_list/get_product.dspy +++ b/wwwroot/product_list/get_product.dspy @@ -3,6 +3,8 @@ ns = params_kw.copy() userorgid = await get_userorgid() +userid = await get_user() +info(f'[get_product] userorgid={userorgid} userid={userid} ns_keys={list(ns.keys())[:10]}') if not userorgid: return { "widgettype":"Error", @@ -16,6 +18,7 @@ if not userorgid: } ns['org_id'] = userorgid ns['userorgid'] = userorgid +del ns['org_id'] # 防止 default_filterjson 生成 AND org_id=... 抵消 OR 子查询 debug(f'get_product.dspy:{ns=}') if not ns.get('page'):