dever 6 years ago
parent
commit
35496e0f30
1 changed files with 23 additions and 0 deletions
  1. 23 0
      journal/lib/Manage.php

+ 23 - 0
journal/lib/Manage.php

@@ -121,6 +121,29 @@ class Manage
         }
         }
     }
     }
 
 
+    public function showOrderStatusV1($id)
+    {
+        $info = Dever::db('act/order')->one($id);
+        if ($info) {
+            if ($info['status'] == 1) {
+                #return '*已支付';
+                return '待支付';
+            } elseif ($info['status'] == 2) {
+                return '已支付';
+            } elseif ($info['status'] == 3) {
+                return '支付失败';
+            } elseif ($info['status'] == 5) {
+                $table['状态'] = '已退款';
+                $manage = Dever::db('manage/admin')->one($info['tk_admin']);
+                $table['备注'] = $info['tk_desc'];
+                $table['截图'] = '<a><img src="'.$info['tk_pic'].'" style="width:150px" /></a>';
+                //$table['退款时间'] = date('Y-m-d H:i:s', $info['tk_time']);
+                $table['操作人'] = $manage['username'];
+                return Dever::table($table);
+            }
+        }
+    }
+
 	private function search($table = 'content/article')
 	private function search($table = 'content/article')
 	{
 	{
 		$keyword = Dever::input('keyword');
 		$keyword = Dever::input('keyword');