rabin 3 years ago
parent
commit
7853ba7e08
2 changed files with 4 additions and 1 deletions
  1. 3 0
      app/card/src/Api.php
  2. 1 1
      service/agent/lib/Order.php

+ 3 - 0
app/card/src/Api.php

@@ -158,6 +158,9 @@ class Api extends Core
             }
 
             # 验证代理商权益
+            if ($data['type'] == 2) {
+                $agent = Dever::db('agent/member_goods')->
+            }
         }
 
         $info = array();

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

@@ -1026,7 +1026,7 @@ class Order
         $table['body'] = array();
         $agreement_type = Dever::db('setting/agreement')->config['config_type'];
         $agreement_status = Dever::db('agent/member_agreement')->config['status'];
-        if (!$table) {
+        if ((isset($process[3]['type']) && is_array($process[3]['type']) && in_array(5, $process[3]['type'])) || $info['import'] > 1) {
             $agreement_title = '(已生成合同)';
             $agreement_button = array();