From d8f717dde4325f4c90dae7f30582c2c44725ad67 Mon Sep 17 00:00:00 2001 From: JerryYan <792602257@qq.com> Date: Thu, 28 May 2020 22:07:22 +0800 Subject: [PATCH] =?UTF-8?q?TradeRule=E5=90=8E=E5=8F=B0=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyhproject/admin/model/TradeRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyhproject/admin/model/TradeRule.php b/hyhproject/admin/model/TradeRule.php index 5e1d927..7b4369d 100644 --- a/hyhproject/admin/model/TradeRule.php +++ b/hyhproject/admin/model/TradeRule.php @@ -80,7 +80,7 @@ class TradeRule extends Base WSTUnset($data,'id,dataFlag,isShow,create_time'); Db::startTrans(); try{ - $result = $this->validate('TradeRule.edit')->allowField(true)->save($data,['articleId'=>$articleId]); + $result = $this->validate('TradeRule.edit')->allowField(true)->save($data,['id'=>$id]); if(false !== $result){ WSTClearAllCache(); Db::commit();