master
lujian 6 years ago
parent 8e7c57344d
commit 20c29056eb

@ -23,5 +23,5 @@ public interface AppActService {
void published(JSONObject manager,String act_id,boolean is_valid);
void sendAnnualBillMessage();
void sendAnnualBillMessage(JSONObject params);
}

@ -119,11 +119,9 @@ public class AppActServiceImp implements AppActService {
}
@Override
public void sendAnnualBillMessage() {
public void sendAnnualBillMessage(JSONObject params) {
logger.debug("sendAnnualMessage Begin");
JSONObject params = new JSONObject();
params.put("client_id", 9);
List<JSONObject> tokens = clientDeviceTokenMapper.listAllTokens(params);
for (JSONObject devToken : tokens) {
Runnable task = () -> {

@ -46,9 +46,17 @@ public class AppActController {
appActService.published(manager,act_id,is_valid);
}
@GetMapping(value = "/annual/bill")
@GetMapping(value = "/annual/bill/test")
public String testSendAnnualBillMessage() {
JSONObject params = new JSONObject();
params.put("client_id", 9);
appActService.sendAnnualBillMessage(params);
return "success";
}
@GetMapping(value = "/annual/bill/all")
public String sendAnnualBillMessage() {
appActService.sendAnnualBillMessage();
appActService.sendAnnualBillMessage(null);
return "success";
}
}

@ -24,7 +24,7 @@
</div>
</div>
<div class="form-group">
<label ng-if="catId!='app_activity' and catId!='app_ad" class="col-md-2 control-label" for="desc-input">HTML Description</label>
<label ng-if="catId!='app_activity' && catId!='app_ad'" class="col-md-2 control-label" for="desc-input">HTML Description</label>
<label ng-if="catId=='app_activity'" class="col-md-2 control-label" for="desc-input">HomePage AD</label>
<label ng-if="catId=='app_ad'" class="col-md-2 control-label" for="desc-input">App Launch AD</label>
<div class="col-md-10">
@ -61,6 +61,13 @@
<p ng-if="catId=='app_ad'"class="small text-warning">(广告展示时间(s))</p>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="kw-input">url</label>
<div class="col-md-10">
<input ng-model="reference.url" type="text" name="title" id="url-input" class="form-control">
<p class="small text-warning">(跳转H5页面链接)</p>
</div>
</div>
</form>
<div class="form-group">
<label class="control-label">Content</label>

Loading…
Cancel
Save