rabin 2 years ago
parent
commit
d19346892a
2 changed files with 15 additions and 1 deletions
  1. 1 1
      service/agent/lib/Set.php
  2. 14 0
      service/setting/database/role_goods.php

+ 1 - 1
service/agent/lib/Set.php

@@ -176,7 +176,7 @@ class Set
         $where['option_role_id'] = $role_id;
         $where['option_give'] = $give;
         $where['set_state'] = 2;
-        Dever::db('setting/role_goods')->updates($where);
+        Dever::db('setting/role_goods')->updateSet($where);
 
         foreach ($goods as $k => $v) {
             $type = 1;

+ 14 - 0
service/setting/database/role_goods.php

@@ -161,5 +161,19 @@ return array
             'type' => 'all',
             'col' => '*',
         ),
+
+        'updateSet' => array
+        (
+            'type' => 'update',
+            'option' => array
+            (
+                'role_id' => 'yes',
+                'give' => 'yes',
+            ),
+            'set' => array
+            (
+                'state' => 'yes',
+            ),
+        ),
     ),
 );