dever 3 年之前
父節點
當前提交
5c8173cd39
共有 2 個文件被更改,包括 23 次插入1 次删除
  1. 21 1
      app/card/database/code.php
  2. 2 0
      app/mshop/lib/Buy.php

+ 21 - 1
app/card/database/code.php

@@ -71,6 +71,26 @@ return array
             //'mul'       => array(1 => '恢复使用', 4 => '已作废'),
         ),
 
+        'total_cash'      => array
+        (
+            'type'      => 'varchar-50',
+            'name'      => '总额',
+            'default'   => '',
+            'desc'      => '总额',
+            'match'     => 'option',
+            'update'    => 'text',
+        ),
+
+        'use_cash'      => array
+        (
+            'type'      => 'varchar-50',
+            'name'      => '已使用',
+            'default'   => '',
+            'desc'      => '已使用',
+            'match'     => 'option',
+            'update'    => 'text',
+        ),
+
         'uid'       => array
         (
             'type'      => 'int-11',
@@ -216,7 +236,7 @@ return array
             'type' => 'all',
             'page' => array(10, 'list'),
             'order' => array('cdate' => 'ddate'),
-            'col' => '*',
+            'col' => '*,total_cash-use_cash as cash',
         ),
     ),
 );

+ 2 - 0
app/mshop/lib/Buy.php

@@ -314,6 +314,7 @@ class Buy
             'project_id' => 2,
             'channel_id' => 1,
             'system_source' => 5,
+            'account_id' => 7,
             'uid' => $uid,
             'name' => $order_data['name'],
             'openid' => $openid,
@@ -355,6 +356,7 @@ class Buy
             'project_id' => 2,
             'channel_id' => 1,
             'system_source' => 5,
+            'account_id' => 7,
             'uid' => -1,
             'name' => $order['name'],
             'cash' => $order['price'],