Manage.php 1023 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Pay\Lib;
  3. use Dever;
  4. class Manage
  5. {
  6. public function showOrderStatus($id)
  7. {
  8. $info = Dever::db('pay/order')->one($id);
  9. if ($info) {
  10. if ($info['status'] == 1) {
  11. #return '*已支付';
  12. return '待支付';
  13. } elseif ($info['status'] == 2) {
  14. return '已支付';
  15. } elseif ($info['status'] == 3) {
  16. return '支付失败';
  17. } elseif ($info['status'] == 5) {
  18. $table['状态'] = '已退款';
  19. $manage = Dever::db('manage/admin')->one($info['tk_admin']);
  20. $table['备注'] = $info['tk_desc'];
  21. $table['截图'] = '<a><img src="'.$info['tk_pic'].'" style="width:150px" /></a>';
  22. //$table['退款时间'] = date('Y-m-d H:i:s', $info['tk_time']);
  23. $table['操作人'] = $manage['username'];
  24. return Dever::table($table);
  25. }
  26. }
  27. }
  28. }