rabin 2 years ago
parent
commit
7b07d5c024
2 changed files with 3 additions and 3 deletions
  1. 1 1
      service/agent/database/order_process.php
  2. 2 2
      service/agent/lib/Import.php

+ 1 - 1
service/agent/database/order_process.php

@@ -174,7 +174,7 @@ return array
             'match'     => 'option',
             'update'    => 'text',
             // 'value'     => Dever::input('soft_price', '0'),
-            'show'      => 'cstatus=2',
+            'show'      => 'audit=1',
         ),
 
         'desc'      => array

+ 2 - 2
service/agent/lib/Import.php

@@ -607,8 +607,8 @@ class Import
             foreach ($data as $k => $v) {
 
                 $role = Dever::db('setting/role')->find($v['role']);
-                if ($data['role']['type'] == 1) {
-                    $data['price'] = $data['role']['price'];
+                if ($role['type'] == 1) {
+                    $data['price'] = $role['price'];
                 } elseif ($data['role']['type'] == 2) {
                     $data['area'] = $this->checkArea($data['area'], $data['role'], $member ? $member['id'] : false);
                     $data['price'] = Dever::load('area/api')->getPrice($data['role']['area'], $data['area']);