Subversion Repositories SmartDukaan

Rev

Rev 19657 | Rev 19829 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19657 Rev 19670
Line 502... Line 502...
502
			$offerurl = $this->apihost."getOfferForUser/?user_id=".$user_id;
502
			$offerurl = $this->apihost."getOfferForUser/?user_id=".$user_id;
503
			$response = $this->make_request($offerurl,null);
503
			$response = $this->make_request($offerurl,null);
504
			Cache::write($cachekey , $response ,'target');
504
			Cache::write($cachekey , $response ,'target');
505
			if(!empty($response)){
505
			if(!empty($response)){
506
				
506
				
507
								if($response['startDate']/1000 <= $current_time && $response['endDate']/1000 >= $current_time ){
507
// 								if($response['startDate']/1000 <= $current_time && $response['endDate']/1000 >= $current_time ){
508
					
508
					
509
								}
509
// 								}
510
								else{
510
// 								else{
511
									$response = "";
511
// 									$response = "";
512
									}
512
// 									}
513
				}
513
				}
514
				else{
514
				else{
515
					$response = "";
515
					$response = "";
516
				}
516
				}
517
		}else{
517
		}else{
518
			if(!empty($getoffer)){
518
			if(!empty($getoffer)){
519
					$response = $getoffer;
519
					$response = $getoffer;
520
					if($response['startDate']/1000 <= $current_time && $response['endDate']/1000 >= $current_time ){
520
// 					if($response['startDate']/1000 <= $current_time && $response['endDate']/1000 >= $current_time ){
521
						
521
						
522
					}
522
// 					}
523
					else{
523
// 					else{
524
						$response = "";
524
// 						$response = "";
525
					}
525
// 					}
526
				}
526
				}
527
		}
527
		}
528
		
528
		
529
		$maxpercentage = 0;
529
		$maxpercentage = 0;
530
 
530