dever 6 rokov pred
rodič
commit
92141c5ab3
1 zmenil súbory, kde vykonal 31 pridanie a 0 odobranie
  1. 31 0
      lib/Manage.php

+ 31 - 0
lib/Manage.php

@@ -0,0 +1,31 @@
+<?php
+
+namespace Pay\Lib;
+
+use Dever;
+
+class Manage
+{
+    public function showOrderStatus($id)
+    {
+        $info = Dever::db('pay/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 href="'.$info['tk_pic'].'" target="_blank"><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);
+            }
+        }
+    }
+}