Your Name %!s(int64=3) %!d(string=hai) anos
pai
achega
70e3911fbf
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 3 0
      learn/active/lib/Manage.php
  2. 2 1
      learn/active/src/Home.php

+ 3 - 0
learn/active/lib/Manage.php

@@ -431,8 +431,11 @@ Class Manage
         $data = Dever::db('active/order')->find($order_id);
         $ids = $this->common($data,3,'',$code_id);
         if ($ids) {
+            $admin = Dever::load('manage/auth.info');
             $w['where_id'] = $code_id;
             $w['status'] = 3;
+            $w['offdate'] = time();
+            $w['audit_admin'] = $admin['id'];
             Dever::db('active/code')->update($w);
         }
         return 'reload';

+ 2 - 1
learn/active/src/Home.php

@@ -275,10 +275,11 @@ Class Home extends Core
 			if ($data['status'] == 2) {
 				Dever::alert('当前核销码已核销');
 			}
+			$admin = Dever::load('manage/auth.info');
 			$where['where_id'] = $code_id;
 			$where['status'] = 2;
 			$where['time'] = time();
-			$where['top_admin'] = $this->uid;
+			$where['audit_admin'] = $admin['id'];
 			$ids = Dever::db('active/code')->update($where);
 			if ($ids) {
 				$data['msg'] = '核销成功';