|
|
@@ -57,7 +57,7 @@ abstract class ActivityCalc {
|
|
|
$pNum = count($products);
|
|
|
$minNum = $this->getMinimalProductNum();
|
|
|
if ($pNum < $minNum) {
|
|
|
- Log::warning("not enough order. product num: $pNum, $minNum needed, stop activity: $this->getNameCN()");
|
|
|
+ Log::warning("not enough order. product num: $pNum, $minNum needed, stop activity:" . $this->getNameCN());
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -167,7 +167,7 @@ abstract class ActivityCalc {
|
|
|
}
|
|
|
Redis::hSet($KEY, $this->getName(), $remain + $profit);
|
|
|
|
|
|
- Log::warning("$this->getName(): single order[product]. dice:$dice, remain:$remain, pay_count:$products[0]['pay_count']");
|
|
|
+ Log::warning($this->getName() . ": single order[product]. dice:$dice, remain:$remain, pay_count:" . $products[0]['pay_count']);
|
|
|
}
|
|
|
|
|
|
$result = $this->getResult($winners == $left);
|
|
|
@@ -202,7 +202,7 @@ abstract class ActivityCalc {
|
|
|
$this->execute($p, $single, false);
|
|
|
}
|
|
|
|
|
|
- Log::warning("activity $this->getNameCN() calc finished. result: $result");
|
|
|
+ Log::warning("activity" . $this->getNameCN() . " calc finished. result: $result");
|
|
|
}
|
|
|
|
|
|
protected function execute($product, $single=true, $win=true) {
|