dever 3 năm trước cách đây
mục cha
commit
3f8017ca10
1 tập tin đã thay đổi với 28 bổ sung0 xóa
  1. 28 0
      app/shop/src/My.php

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

@@ -313,12 +313,40 @@ class My extends Core
         return Dever::load('passport/address')->getAddress($this->uid);
     }
 
+    # 获取单个地址信息
+    public function getAddress()
+    {
+        $id = Dever::input('id');
+        return Dever::load('passport/address')->getOne($this->uid, $id);
+    }
+
+    # 删除单个地址信息
+    public function delAddress()
+    {
+        $id = Dever::input('id');
+        return Dever::load('passport/address')->del($this->uid, $id, 1);
+    }
+
     # 我的发票列表
     public function invoice()
     {
         return Dever::load('passport/invoice')->get($this->uid);
     }
 
+    # 获取单个发票信息
+    public function getInvoice()
+    {
+        $id = Dever::input('id');
+        return Dever::load('passport/invoice')->getOne($this->uid, $id);
+    }
+
+    # 删除单个发票信息
+    public function delInvoice()
+    {
+        $id = Dever::input('id');
+        return Dever::load('passport/invoice')->del($this->uid, $id, 1);
+    }
+
     # 提交反馈
     public function feedback()
     {