dever 3 년 전
부모
커밋
0cf0403aa7
2개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 16 0
      app/card/database/code.php
  2. 6 0
      app/card/lib/Code.php

+ 16 - 0
app/card/database/code.php

@@ -8,6 +8,12 @@ $status = array
     5 => '已过期',
 );
 
+$type = array
+(
+    1 => '商城用户',
+    2 => '代理商',
+);
+
 return array
 (
     # 表名
@@ -93,6 +99,16 @@ return array
             'update'    => 'text',
         ),
 
+        'type'      => array
+        (
+            'type'      => 'tinyint-1',
+            'name'      => '类型',
+            'default'   => '1',
+            'desc'      => '类型',
+            'match'     => 'is_numeric',
+            'option'    => $type,
+        ),
+
         'uid'       => array
         (
             'type'      => 'int-11',

+ 6 - 0
app/card/lib/Code.php

@@ -127,6 +127,12 @@ class Code
         }
     }
 
+    # 直接创建已绑定的礼品卡
+    public function create($info, $type, $uid, $price, $num)
+    {
+        
+    }
+
     /**
      * 作废
      *