|
@@ -123,7 +123,7 @@ class PetProc {
|
|
if (count($vo->explorePetList) == 0) {
|
|
if (count($vo->explorePetList) == 0) {
|
|
$vo->startTs = 0;
|
|
$vo->startTs = 0;
|
|
$vo->endTs = 0;
|
|
$vo->endTs = 0;
|
|
- $vo->output_num = 0;
|
|
|
|
|
|
+ $vo->output_count = 0;
|
|
$vo->output_ts = 0;
|
|
$vo->output_ts = 0;
|
|
} else {
|
|
} else {
|
|
if ($vo->startTs == 0) {
|
|
if ($vo->startTs == 0) {
|
|
@@ -133,7 +133,7 @@ class PetProc {
|
|
$ts = self::GetAreaOutPutInfo($vo, 2);
|
|
$ts = self::GetAreaOutPutInfo($vo, 2);
|
|
$num = self::GetAreaOutPutInfo($vo, 1);
|
|
$num = self::GetAreaOutPutInfo($vo, 1);
|
|
$vo->endTs = $vo->startTs + $ts;
|
|
$vo->endTs = $vo->startTs + $ts;
|
|
- $vo->output_num = $num;
|
|
|
|
|
|
+ $vo->output_count = $num;
|
|
$vo->output_ts = $vo->endTs - $vo->startTs;
|
|
$vo->output_ts = $vo->endTs - $vo->startTs;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -206,7 +206,7 @@ class PetProc {
|
|
if (count($petUidList) == 0) {
|
|
if (count($petUidList) == 0) {
|
|
$ins_ExploreArea->startTs = 0;
|
|
$ins_ExploreArea->startTs = 0;
|
|
$ins_ExploreArea->endTs = 0;
|
|
$ins_ExploreArea->endTs = 0;
|
|
- $ins_ExploreArea->output_num = 0;
|
|
|
|
|
|
+ $ins_ExploreArea->output_count = 0;
|
|
$ins_ExploreArea->output_ts = 0;
|
|
$ins_ExploreArea->output_ts = 0;
|
|
} else {
|
|
} else {
|
|
if ($ins_ExploreArea->startTs == 0) {
|
|
if ($ins_ExploreArea->startTs == 0) {
|
|
@@ -216,7 +216,7 @@ class PetProc {
|
|
$ts = self::GetAreaOutPutInfo($ins_ExploreArea, 2);
|
|
$ts = self::GetAreaOutPutInfo($ins_ExploreArea, 2);
|
|
$num = self::GetAreaOutPutInfo($ins_ExploreArea, 1);
|
|
$num = self::GetAreaOutPutInfo($ins_ExploreArea, 1);
|
|
$ins_ExploreArea->endTs = $ins_ExploreArea->startTs + $ts;
|
|
$ins_ExploreArea->endTs = $ins_ExploreArea->startTs + $ts;
|
|
- $ins_ExploreArea->output_num = $num;
|
|
|
|
|
|
+ $ins_ExploreArea->output_count = $num;
|
|
$ins_ExploreArea->output_ts = $ins_ExploreArea->endTs - $ins_ExploreArea->startTs;
|
|
$ins_ExploreArea->output_ts = $ins_ExploreArea->endTs - $ins_ExploreArea->startTs;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -253,7 +253,7 @@ class PetProc {
|
|
$vo->explorePetList = array();
|
|
$vo->explorePetList = array();
|
|
$vo->startTs = 0;
|
|
$vo->startTs = 0;
|
|
$vo->endTs = 0;
|
|
$vo->endTs = 0;
|
|
- $vo->output_num = 0;
|
|
|
|
|
|
+ $vo->output_count = 0;
|
|
$vo->output_ts = 0;
|
|
$vo->output_ts = 0;
|
|
|
|
|
|
ctx()->store->exploreArea->$areaId = $vo;
|
|
ctx()->store->exploreArea->$areaId = $vo;
|
|
@@ -279,7 +279,7 @@ class PetProc {
|
|
$tt = $vo->endTs - $vo->startTs;
|
|
$tt = $vo->endTs - $vo->startTs;
|
|
}
|
|
}
|
|
|
|
|
|
- $ts_n = $vo->output_ts / $vo->output_num;
|
|
|
|
|
|
+ $ts_n = $vo->output_ts / $vo->output_count;
|
|
$num = intval($tt *= $ts_n);
|
|
$num = intval($tt *= $ts_n);
|
|
$goodsStr = $vo->mo()->reward_fixed . ',' . $num;
|
|
$goodsStr = $vo->mo()->reward_fixed . ',' . $num;
|
|
StoreProc::AddMultiItemInStore($goodsStr);
|
|
StoreProc::AddMultiItemInStore($goodsStr);
|
|
@@ -293,7 +293,7 @@ class PetProc {
|
|
//$vo->explorePetList = array();
|
|
//$vo->explorePetList = array();
|
|
$vo->startTs = 0;
|
|
$vo->startTs = 0;
|
|
$vo->endTs = 0;
|
|
$vo->endTs = 0;
|
|
- $vo->output_num = 0;
|
|
|
|
|
|
+ $vo->output_count = 0;
|
|
$vo->output_ts = 0;
|
|
$vo->output_ts = 0;
|
|
|
|
|
|
ctx()->store->exploreArea->$areaId = $vo;
|
|
ctx()->store->exploreArea->$areaId = $vo;
|