|
@@ -17,7 +17,6 @@ class GetKennelWorkCommand extends CConsoleCommand {
|
|
|
public function getKennel(){
|
|
|
$count = 0;
|
|
|
$page = intval(Yii::app()->redis->get('page'));
|
|
|
- $page = 0;
|
|
|
if (empty($page)) $page =1;
|
|
|
while($page) {
|
|
|
if ($count >= 1000) {
|
|
@@ -56,6 +55,9 @@ class GetKennelWorkCommand extends CConsoleCommand {
|
|
|
$kennel->tags[$k] = $v;
|
|
|
$kennel->desc = $tmp['desc'];
|
|
|
foreach ($tmp['desc_pics'] as $k => $v) {
|
|
|
+ if (!empty($v['url'])){
|
|
|
+ $v['url'] = str_replace('wozhua-pics.qiniudn.com','pics.maiyizhi.cn',$v['url']);
|
|
|
+ }
|
|
|
$kennel->desc_pics[$k] = $v;
|
|
|
}
|
|
|
$kennel->address = $tmp['address'];
|