rabin 3 년 전
부모
커밋
05990bd50c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      service/option/lib/Manage.php

+ 2 - 2
service/option/lib/Manage.php

@@ -39,10 +39,10 @@ class Manage
                 } else {
                     $aid = $account['id'];
                 }
-                Dever::db('option/member')->update(array('where_id' => $info['id'], 'aid' => $aid));
+                $state = Dever::db('option/member')->update(array('where_id' => $info['id'], 'aid' => $aid));
             }
 
-            $main = Dever::db('option/member')->getMain(array('key' => $info['key'], 'company_id' => $info['company_id'], 'clear_top' => true));
+            $main = Dever::db('option/member')->getMain(array('key' => $info['key'], 'company_id' => $info['company_id'], 'clear_top' => true, 'clear' => true));
             if ($main && $main['aid']) {
                 $where = array();
                 $where['option_company_id'] = $info['company_id'];