From 473fd31be1188bb65d858066314116d7e927887d Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Wed, 27 Nov 2019 14:51:33 +0800 Subject: [PATCH] OA --- Application/Admin/Controller/PromoteController.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 3d1c0f29c..656cd78a7 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -107,6 +107,8 @@ unset($_REQUEST['parent_id']); $v['account'] = trim($v['account']); if(in_array($v['account'], $oa_data)) { M('promote','tab_')->where(['id' => $v['id']])->setField(['oa_associated' => 1]); + } else { + M('promote','tab_')->where(['id' => $v['id']])->setField(['oa_associated' => 0]); } }