Browse Source

tijiaoshuju

lvhao 2 days ago
parent
commit
143d67292e
2 changed files with 12 additions and 9 deletions
  1. 1 9
      core/CoreApp/controllers/Aatest.php
  2. 11 0
      core/CoreApp/controllers/Fullorder.php

+ 1 - 9
core/CoreApp/controllers/Aatest.php

@@ -91,15 +91,7 @@ class Aatest extends Start_Controller {
     public function _remap($arg,$arg_array)
     {  
 
-		$list = $this->db->from("returngoods")->where('email is null')->order_by('id','desc')->get()->result_array();
-		foreach($list as $v){
-			$info = $this->logic_order->getInfo("number = '{$v['number']}'");
-			if(empty($info)){
-				continue;
-			}
-			$this->db->update("returngoods",['email' => $info['email']],['id' => $v['id']]) ;
-			usleep(20);
-		}
+		
 		//$this->_ttexpress();
 		exit('No direct script access allowed');
 		if($arg == 'dayin')

+ 11 - 0
core/CoreApp/controllers/Fullorder.php

@@ -567,6 +567,17 @@ class Fullorder extends Start_Controller {
 				{
 					$info_list[$key]['sname'] = $lkh;
 				}
+				$rginfo_list = $this->returngoods->find_all("email = '".$value['email']."'");
+				if(!empty($rginfo_list))
+				{
+					$tmp_str = '';
+					foreach ($rginfo_list as $k => $v) {
+						$tmp_str .= $v['remark'].'<br/>';
+					}
+
+					$info_list[$key]['sname'] = $info_list[$key]['sname']."<br/>退售后单(".count($rginfo_list).")".'<p style="color:blue"><i  class="method fa fa-list-ul" data-t="'.$tmp_str.'"></i><p>';
+
+				}
 				$shop = $this->shop->read($value['shop']);
 				$info_list[$key]['shop'] = $shop['shopname'];
 				//$info_list[$key]['user'] = $shop['shopuser'];