| Line 58... |
Line 58... |
| 58 |
$store = $this->StoreProduct->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeProduct['StoreProduct']['store_id'])));
|
58 |
$store = $this->StoreProduct->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeProduct['StoreProduct']['store_id'])));
|
| 59 |
$prefix = "SHA".$storeProduct['StoreProduct']['store_id'];
|
59 |
$prefix = "SHA".$storeProduct['StoreProduct']['store_id'];
|
| 60 |
$tag = $prefix.time();
|
60 |
$tag = $prefix.time();
|
| 61 |
if($storeProduct['StoreProduct']['store_id'] == 2){
|
61 |
if($storeProduct['StoreProduct']['store_id'] == 2){
|
| 62 |
$url = str_replace('http://www', 'http://dl', $storeProduct['StoreProduct']['url']);
|
62 |
$url = str_replace('http://www', 'http://dl', $storeProduct['StoreProduct']['url']);
|
| - |
|
63 |
} elseif($storeProduct['StoreProduct']['store_id'] == 3) {
|
| - |
|
64 |
$url = $storeProduct['StoreProduct']['url']."?utm_source=aff_prog&utm_campaign=afts&offer_id=17";
|
| 63 |
}else{
|
65 |
}else{
|
| 64 |
$url = $storeProduct['StoreProduct']['url'];
|
66 |
$url = $storeProduct['StoreProduct']['url'];
|
| 65 |
}
|
67 |
}
|
| 66 |
if( strpos($url, '?') === false ) {
|
68 |
if( strpos($url, '?') === false ) {
|
| 67 |
$firstChar = '?';
|
69 |
$firstChar = '?';
|