Commit cf54a811 authored by Vanessa's avatar Vanessa

Merge branch '0.6.0' of https://github.com/b3log/b3log-solo into 0.6.0

parents 38beb324 9cdcbbd3
...@@ -48,7 +48,7 @@ public final class Option { ...@@ -48,7 +48,7 @@ public final class Option {
/** /**
* Key of broadcast chance expiration time. * Key of broadcast chance expiration time.
*/ */
public static final String ID_C_BROADCAST_CHANCE_EXPIRATION_TIME = "broadCastChanceExpirationTime"; public static final String ID_C_BROADCAST_CHANCE_EXPIRATION_TIME = "broadcastChanceExpirationTime";
// Category constants // Category constants
/** /**
* Broadcast. * Broadcast.
......
...@@ -169,8 +169,7 @@ public final class ChanceProcessor { ...@@ -169,8 +169,7 @@ public final class ChanceProcessor {
* <pre> * <pre>
* { * {
* "sc": boolean, // if has a chance, the value will be true * "sc": boolean, // if has a chance, the value will be true
* "broadCastChanceExpirationTime": long, // if has a chance, the value will larger then 0L * "broadcastChanceExpirationTime": long, // if has a chance, the value will larger then 0L
* "msg": "" // optional
* } * }
* </pre> * </pre>
* </p> * </p>
...@@ -219,14 +218,11 @@ public final class ChanceProcessor { ...@@ -219,14 +218,11 @@ public final class ChanceProcessor {
ret.put(Option.ID_C_BROADCAST_CHANCE_EXPIRATION_TIME, option.getLong(Option.OPTION_VALUE)); ret.put(Option.ID_C_BROADCAST_CHANCE_EXPIRATION_TIME, option.getLong(Option.OPTION_VALUE));
ret.put(Keys.STATUS_CODE, true); ret.put(Keys.STATUS_CODE, true);
} catch (final Exception e) { } catch (final Exception e) {
final String msg = "Broadcast plugin exception"; LOGGER.log(Level.SEVERE, "Broadcast plugin exception", e);
LOGGER.log(Level.SEVERE, msg, e);
final JSONObject jsonObject = QueryResults.defaultResult(); final JSONObject jsonObject = QueryResults.defaultResult();
renderer.setJSONObject(jsonObject); renderer.setJSONObject(jsonObject);
jsonObject.put(Keys.MSG, msg);
} }
} }
......
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