|
|
@@ -203,13 +203,14 @@ class UserPerformance extends \common\components\ActiveRecord
|
|
|
$period = Period::instance();
|
|
|
$periodNum = $period->getNowPeriodNum();
|
|
|
|
|
|
- LoggerTool::info(['sentUserPerformance', $periodNum, DealType::getDealTypeIdByTag('User Performance grant')]);
|
|
|
-
|
|
|
$db = \Yii::$app->db;
|
|
|
$transaction = $db->beginTransaction();
|
|
|
try {
|
|
|
// 奖金发放
|
|
|
$id = self::primaryKey();
|
|
|
+
|
|
|
+ LoggerTool::info(['sentUserPerformance', $periodNum, DealType::getDealTypeIdByTag('User Performance grant'), $userId, $amount, $bountyPeriodNum, $id]);
|
|
|
+
|
|
|
self::insertOne([
|
|
|
'ID' => $id,
|
|
|
'USER_ID' => $userId,
|