public static function touchdateget() { $rowsPer = 500; $data = Yii::app()->beudb->createCommand()->select('*')->from('tconfig')->queryAll(); if (count($data) > 0) { $data = Comm::Conversion($data, "GBK", "UTF-8"); foreach ($data as $value) { $arr = array(); $arr['id'] = $value['id']; $arr['name'] = $value['name']; $arr['brandid'] = $value['brandid']; $arr['enddate'] = $value['enddate']; $arr['lock'] = $value['lock']; // echo $value['clothescategory'];exit(); $arr['apikey'] = $value['apikey']; $arr['headtail'] = json_encode(array('head' => array('touch' => $value['header'], 'ipad' => $value['ipadheader']), 'tail' => array('touch' => $value['footer'], 'ipad' => $value['ipadfooter']))); $arr['modellimit'] = $value['modellimit']; $arr['modeldefault'] = $value['modeldefault']; $arr['modelhead'] = json_encode(unserialize($value['modelhead'])); $arr['modelsethead'] = json_encode(unserialize($value['modelsethead'])); $arr['isshow'] = json_encode(unserialize($value['isshow'])); $arr['description'] = $value['description']; $arr['openkey'] = $value['openkey']; $arr['ver'] = 0; $arr['sqlver'] = 0; $arr['databaseupdate'] = $value['databaseupdate']; // Touch::touchForAdd($arr); self::tclothesSelectByTouchid($value['id']); //统计此触摸屏下的品牌并将其更新到触摸屏下 // } } } else { echo "null"; } }