You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							900 B
						
					
					
				
			
		
		
	
	
							20 lines
						
					
					
						
							900 B
						
					
					
				| <?php
 | |
| namespace LaneWeChat\Core;
 | |
| 
 | |
| class IntelligentInterface{
 | |
|     public static function semanticSemproxy($query, $category, $openId, $latitude='', $longitude='', $region='', $city=''){
 | |
|         $queryUrl = 'https://api.weixin.qq.com/semantic/semproxy/search?access_token=' . AccessToken::getAccessToken(); 
 | |
|         $queryAction = 'POST';
 | |
|         $template = array();
 | |
|         $template['query'] = $query;
 | |
|         $template['category'] = $category;
 | |
|         $template['appid'] = WECHAT_APPID;
 | |
|         $template['uid'] = $openId;
 | |
|         if(!empty($latitude)) $template['latitude'] = $latitude;
 | |
|         if(!empty($longitude)) $template['longitude'] = $longitude;
 | |
|         if(!empty($region)) $template['region'] = $region;
 | |
|         if(!empty($city)) $template['city'] = $city;
 | |
|         $template = json_encode($template);
 | |
|         return Curl::callWebServer($queryUrl, $template, $queryAction, 0, 0);
 | |
|     }
 | |
| } |