dever 3 anni fa
parent
commit
eedb5915a1
2 ha cambiato i file con 12 aggiunte e 13 eliminazioni
  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
 {
-    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
+        (
+            'type'      => 'int-11',
+            'name'      => '用户使用的优惠券id',
+            'default'   => '',
+            'desc'      => '用户的优惠券id',
+            'match'     => 'option',
+        ),
+
+        'user_coupon_id'      => array
         (
             'type'      => 'int-11',
             'name'      => '用户的优惠券id',