dever há 3 anos atrás
pai
commit
5457acb651
2 ficheiros alterados com 4 adições e 7 exclusões
  1. 2 0
      app/shop/database/sell_order.php
  2. 2 7
      app/shop/src/My.php

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

@@ -28,6 +28,8 @@ $status = array
     11 => '已过期',//长时间未支付,自动过期
 );
 
+//1待支付2支付成功3处理中4已完成5已取消6已退款7仅退款8退货退款11已过期
+
 return array
 (
     # 表名

+ 2 - 7
app/shop/src/My.php

@@ -284,15 +284,10 @@ class My extends Core
     public function msg_delete()
     {
         $id = Dever::input('id');
-        $data = Dever::load('message/lib/data')->view($this->uid, $id);
 
-        if ($data) {
-            $data['cdate_string'] = Dever::ddate($data['cdate']);
-            $type = Dever::db('message/type')->one($data['type']);
-            $data['type_name'] = $type['name'];
-        }
+        Dever::db('message/inbox')->delete(array('id' => $id, 'uid' => $this->uid));
 
-        return $data;
+        return $this->msg();
     }
 
     # 查看我的消息 废弃