dever 3 年之前
父節點
當前提交
eedb5915a1
共有 2 個文件被更改,包括 12 次插入13 次删除
  1. 3 13
      app/mshop/src/Act.php
  2. 9 0
      app/shop/database/sell_order.php

+ 3 - 13
app/mshop/src/Act.php

@@ -6,19 +6,9 @@ use Dever;
 
 
 class Act extends Core
 class Act extends Core
 {
 {
-    public function getInfo()
+    # 采购
+    public function buy()
     {
     {
-        $this->data['user'] = $this->user;
-
-        # 获取拥有的优惠券数量
-        $this->data['coupon_num'] = Dever::db('shop/user_coupon')->total(array('uid' => $this->uid));
-
-        $this->data['card_num'] = Dever::db('goods/card_code')->total(array('uid' => $this->uid));
-
-        $this->data['score'] = Dever::load('score/lib/core')->getUserScore($this->uid);
-
-        $this->data['msg'] = Dever::load('message/lib/data')->num($this->uid);
-
-        return $this->data;
+        # 获取这个
     }
     }
 }
 }

+ 9 - 0
app/shop/database/sell_order.php

@@ -222,6 +222,15 @@ return array
         ),
         ),
 
 
         'coupon_id'      => array
         'coupon_id'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '用户使用的优惠券id',
+            'default'   => '',
+            'desc'      => '用户的优惠券id',
+            'match'     => 'option',
+        ),
+
+        'user_coupon_id'      => array
         (
         (
             'type'      => 'int-11',
             'type'      => 'int-11',
             'name'      => '用户的优惠券id',
             'name'      => '用户的优惠券id',