Commit 5fc0e77d authored by rlgy's avatar rlgy

update

parent 807eb2cf
......@@ -37,10 +37,9 @@ class AwardJob extends BaseObject implements JobInterface
$result = Chain33Business::transToken($this->from, $this->to, $this->amount, $this->note, $this->is_token, $this->token);
if (is_string($result)) {
//派奖记录到数据库中
Yii::info("派奖成功! 奖励[{$this->to}][$this->token][$this->amount]个", __CLASS__);
print("派奖成功! 奖励[{$this->to}][$this->token][$this->amount]个\n");
} else {
Yii::info("失败的派奖: [to]: {$this->to}, [amount]: {$this->amount}, [is_token] : {$this->is_token}, [token]: {$this->token}",
__CLASS__);
print("失败的派奖: [to]: {$this->to}, [amount]: {$this->amount}, [is_token] : {$this->is_token}, [token]: {$this->token}\n");
}
}
}
\ No newline at end of file
......@@ -71,11 +71,10 @@ class JugdeAwardJob extends BaseObject implements JobInterface
}
$guess_result->is_award = 1;
if ($guess_result->save()) {
Yii::info("第{$guess_result->stage}期开奖成功", __CLASS__);
print("第{$guess_result->stage}期开奖成功\n");
} else {
Yii::warning("第{$guess_result->stage}期开奖成功, 修改竞猜开奖情况失败", __CLASS__);
print("第{$guess_result->stage}期开奖成功, 修改竞猜开奖情况失败\n");
}
print "ok\n";
} else {
$loop = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment