12345678910111213141516171819202122232425262728293031 |
- <?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><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);
- }
- }
- }
- }
|