Your Name 2 yıl önce
ebeveyn
işleme
57f5a69336
2 değiştirilmiş dosya ile 48 ekleme ve 48 silme
  1. 48 0
      app/mshop/src/My.php
  2. 0 48
      app/shop/src/My.php

+ 48 - 0
app/mshop/src/My.php

@@ -501,4 +501,52 @@ class My extends Core
         return Dever::load('goods/lib/info')->getGoodsByCode($this->shop_id, 1, true);
     }
 
+    #资金账户列表
+    public function record_list(){
+        $shop_id = Dever::input('shop_id');
+        $month = Dever::input('month');
+        $shop = Dever::db('shop/info')->find($shop_id);
+        $data = array();
+        $data['price'] = $shop['price'];
+        if ($month) {
+            $start = $month . '-01 00:00:00';
+            $end = strtotime("$start +1 month -1 day");
+            $where['start'] = Dever::maketime($start);
+            $where['end'] = $end;
+        }
+        $where['shop_id'] = $shop_id;
+        $where['state'] = 1;
+        $data['list'] = Dever::db('shop/record')->getAll($where);
+        foreach($data['list'] as $k=>$v){
+            if($v['type'] == 1 || $v['type'] == 3 || $v['type'] == 6 || $v['type'] == 7 || $v['type'] == 8){
+                $data['list'][$k]['price'] = '+'.$v['price'];
+            }else{
+                $data['list'][$k]['price'] = '-'.$v['price'];
+            }
+            $data['list'][$k]['cdate'] = date('Y.m.d H:i',$v['cdate']);
+            $typeconfig = Dever::db('shop/record')->config['config_type'];
+            $data['list'][$k]['type_name'] = Dever::status($typeconfig,$v['type']);
+            $config = Dever::db('shop/record')->config['config_status'];
+            $data['list'][$k]['status_name'] = Dever::status($config,$v['status']);
+        }
+        $data['fund'] = Dever::db('main/manage_config')->getFund(array('state'=>1));
+        return $data;
+    }
+    #资金账户详情页
+    public function record_desc(){
+        $id = Dever::input('id');
+        $data = Dever::db('shop/record')->find($id);
+        if($data['type'] == 1 || $data['type'] == 3 || $data['type'] == 6 || $data['type'] == 7 || $data['type'] == 8){
+            $data['price'] = '+'.$data['price'];
+        }else{
+            $data['price'] = '-'.$data['price'];
+        }
+        $typeconfig = Dever::db('shop/record')->config['config_type'];
+        $data['type_name'] = Dever::status($typeconfig,$data['type']);
+        $config = Dever::db('shop/record')->config['config_status'];
+        $data['status_name'] = Dever::status($config,$data['status']);
+        $data['cdate'] = date('Y.m.d H:i',$data['cdate']);
+        return $data;
+    }
+
 }

+ 0 - 48
app/shop/src/My.php

@@ -521,52 +521,4 @@ class My extends Core
 			return 'ok';
 		}
 	}
-
-	#资金账户列表
-	public function record_list(){
-		$shop_id = Dever::input('shop_id');
-		$month = Dever::input('month');
-		$shop = Dever::db('shop/info')->find($shop_id);
-		$data = array();
-		$data['price'] = $shop['price'];
-		if ($month) {
-        	$start = $month . '-01 00:00:00';
-        	$end = strtotime("$start +1 month -1 day");
-        	$where['start'] = Dever::maketime($start);
-        	$where['end'] = $end;
-        }
-        $where['shop_id'] = $shop_id;
-        $where['state'] = 1;
-		$data['list'] = Dever::db('shop/record')->getAll($where);
-		foreach($data['list'] as $k=>$v){
-			if($v['type'] == 1 || $v['type'] == 3 || $v['type'] == 6 || $v['type'] == 7 || $v['type'] == 8){
-				$data['list'][$k]['price'] = '+'.$v['price'];
-			}else{
-				$data['list'][$k]['price'] = '-'.$v['price'];
-			}
-			$data['list'][$k]['cdate'] = date('Y.m.d H:i',$v['cdate']);
-			$typeconfig = Dever::db('shop/record')->config['config_type'];
-			$data['list'][$k]['type_name'] = Dever::status($typeconfig,$v['type']);
-	    	$config = Dever::db('shop/record')->config['config_status'];
-			$data['list'][$k]['status_name'] = Dever::status($config,$v['status']);
-		}
-		$data['fund'] = Dever::db('main/manage_config')->getFund(array('state'=>1));
-		return $data;
-	}
-	#资金账户详情页
-	public function record_desc(){
-		$id = Dever::input('id');
-		$data = Dever::db('shop/record')->find($id);
-		if($data['type'] == 1 || $data['type'] == 3 || $data['type'] == 6 || $data['type'] == 7 || $data['type'] == 8){
-			$data['price'] = '+'.$data['price'];
-		}else{
-			$data['price'] = '-'.$data['price'];
-		}
-		$typeconfig = Dever::db('shop/record')->config['config_type'];
-		$data['type_name'] = Dever::status($typeconfig,$data['type']);
-    	$config = Dever::db('shop/record')->config['config_status'];
-		$data['status_name'] = Dever::status($config,$data['status']);
-		$data['cdate'] = date('Y.m.d H:i',$data['cdate']);
-		return $data;
-	}
 }