/**
  * 结算成功以后修复精选计划状态
  *
  * @param array $task
  */
 private function repairSpreadPlanState($task)
 {
     printf('修复精选推广计划状态 Task:%s' . PHP_EOL, json_encode($task));
     if ($task['siteType'] == 3) {
         $choicePlanInfo = Model_Plan_Jp::getPlanInfoById($task['planId'], true);
         if (empty($choicePlanInfo)) {
             printf('没有获取到金铺精选计划信息。' . PHP_EOL);
             return;
         }
         printf('金铺精选计划信息: %s' . PHP_EOL, json_encode($choicePlanInfo));
         if ($choicePlanInfo['status'] != Model_Plan_Jp::ENUM_STATUS_HOLD) {
             printf('金铺精选计划不是结算状态[%d],不处理。' . PHP_EOL, $choicePlanInfo['status']);
             return;
         }
         if (Model_Plan_Jp::updateChoiceStateById($task['planId'], Model_Plan_Jp::ENUM_STATUS_OVER)) {
             printf('修复金铺精选推广计划[%d]状态成功。' . PHP_EOL, $task['planId']);
         } else {
             printf('更新金铺精选推广计划[%d]状态失败。' . PHP_EOL, $task['planId']);
         }
         return;
     }
 }