Commit 29fb61ef authored by rlgy's avatar rlgy

Revert "update"

This reverts commit 5fc0e77d
parent 5fc0e77d
...@@ -37,9 +37,10 @@ class AwardJob extends BaseObject implements JobInterface ...@@ -37,9 +37,10 @@ class AwardJob extends BaseObject implements JobInterface
$result = Chain33Business::transToken($this->from, $this->to, $this->amount, $this->note, $this->is_token, $this->token); $result = Chain33Business::transToken($this->from, $this->to, $this->amount, $this->note, $this->is_token, $this->token);
if (is_string($result)) { if (is_string($result)) {
//派奖记录到数据库中 //派奖记录到数据库中
print("派奖成功! 奖励[{$this->to}][$this->token][$this->amount]个\n"); Yii::info("派奖成功! 奖励[{$this->to}][$this->token][$this->amount]个", __CLASS__);
} else { } else {
print("失败的派奖: [to]: {$this->to}, [amount]: {$this->amount}, [is_token] : {$this->is_token}, [token]: {$this->token}\n"); Yii::info("失败的派奖: [to]: {$this->to}, [amount]: {$this->amount}, [is_token] : {$this->is_token}, [token]: {$this->token}",
__CLASS__);
} }
} }
} }
\ No newline at end of file
...@@ -71,10 +71,11 @@ class JugdeAwardJob extends BaseObject implements JobInterface ...@@ -71,10 +71,11 @@ class JugdeAwardJob extends BaseObject implements JobInterface
} }
$guess_result->is_award = 1; $guess_result->is_award = 1;
if ($guess_result->save()) { if ($guess_result->save()) {
print("第{$guess_result->stage}期开奖成功\n"); Yii::info("第{$guess_result->stage}期开奖成功", __CLASS__);
} else { } else {
print("第{$guess_result->stage}期开奖成功, 修改竞猜开奖情况失败\n"); Yii::warning("第{$guess_result->stage}期开奖成功, 修改竞猜开奖情况失败", __CLASS__);
} }
print "ok\n";
} else { } else {
$loop = false; $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