Your Name 2 年之前
父節點
當前提交
aa968dacf3
共有 1 個文件被更改,包括 9 次插入8 次删除
  1. 9 8
      service/agent/lib/Soft_cash.php

+ 9 - 8
service/agent/lib/Soft_cash.php

@@ -330,7 +330,7 @@ Class Soft_cash
             return '';
         }
     }
-    public function agreement($id){
+    public function list($id){
         $info = Dever::db('agent/soft_cash')->find($id);
         $status = '';
         if($info['status'] == 3 && $info['agreement_id']){
@@ -340,16 +340,17 @@ Class Soft_cash
         $where['id'] = $id;
         $where['type'] = $status;
         dever::db('agent/soft_cash')->update($where);
-    }
-    public function list($id){
-        $this->agreement($id);
-        $info = Dever::db('agent/soft_cash')->find($id);
-         $config_status = Dever::db('agent/soft_cash')->config['config_status'];
+        $info = Dever::db('agent/soft_cash')->find(array('id'=>$id,'s'=>1));
+        $config_status = Dever::db('agent/soft_cash')->config['config_status'];
         $data['status'] = Dever::status($config_status,$info['status']);
         $config_type = Dever::db('agent/soft_cash')->config['config_type'];
         $data['type'] = Dever::status($config_type,$info['type']);
-        $data['zdate'] = date('Y-m-d H:i',$info['zdate']);
-         $html = $data['status'];
+        if($info['zdate']){
+            $data['zdate'] = date('Y-m-d H:i',$info['zdate']);
+        }else{
+            $data['zdate'] = '-';
+        }
+        $html = $data['status'];
         $html .= '<br />' . $data['type'];
         $html .= '<br />' . $data['zdate'];
         return $html;