dever 6 years ago
parent
commit
c0786d78ef
1 changed files with 1 additions and 3 deletions
  1. 1 3
      component/src/Auditing.php

+ 1 - 3
component/src/Auditing.php

@@ -42,10 +42,9 @@ class Auditing extends Core
         $data = Dever::db('component/auditing')->state();
         if ($data) {
         	$wechat = array();
-        	print_r($data);
         	foreach ($data as $k => $v) {
         		if ($v['status'] == 1 && $v['auditid']) {
-        			$user = Dever::db('component/user')->one($v['uid']);
+        			$user = Dever::db('component/user')->one($v['user_id']);
 					$oauth = Dever::db('main/oauth')->one($user['oauth_id']);
 					if (!isset($wechat[$v['project_id']])) {
 						$wechat[$v['project_id']] = new Wechat($v['project_id'], 'component');
@@ -55,7 +54,6 @@ class Auditing extends Core
 					$oauth['oauth'] = $oauth['value'];
 					$oauth['auditid'] = $v['auditid'];
 					$result = $wechat[$v['project_id']]->curl('applet_auditstatus', $oauth, false);
-					print_r($result);die;
 					
 					$update = array();
 					if (isset($result['status'])) {