rabin 3 tahun lalu
induk
melakukan
6c58e0f49e
1 mengubah file dengan 7 tambahan dan 3 penghapusan
  1. 7 3
      service/setting/database/role_reward.php

+ 7 - 3
service/setting/database/role_reward.php

@@ -27,9 +27,13 @@ $prize = function()
 $role_id = Dever::input('search_option_role_id');
 
 $update = false;
+$value = '3,4';
 if ($role_id) {
     $role_info = Dever::db('setting/role')->find($role_id);
     if ($role_info && $role_info['type'] == 2 && $role_info['area'] < 3) {
+        if ($role_info['area'] == 2) {
+            $value = '4';
+        }
         $update = 'text';
     }
 }
@@ -117,7 +121,7 @@ return array
             'desc'      => '直推区内数值',
             'match'     => 'is_string',
             'update'    => $update,
-            'show'      => 't_role_id=3,4',
+            'show'      => 't_role_id=' . $value,
             //'search'    => 'fulltext',
             //'list'      => true,
         ),
@@ -130,7 +134,7 @@ return array
             'desc'      => '直推区外数值',
             'match'     => 'is_string',
             'update'    => $update,
-            'show'      => 't_role_id=3,4',
+            'show'      => 't_role_id=' . $value,
             //'search'    => 'fulltext',
             //'list'      => true,
         ),
@@ -143,7 +147,7 @@ return array
             'desc'      => '非直推区内数值',
             'match'     => 'is_string',
             'update'    => $update,
-            'show'      => 't_role_id=3,4',
+            'show'      => 't_role_id=' . $value,
             //'search'    => 'fulltext',
             //'list'      => true,
         ),