|
|
@@ -32,22 +32,22 @@ public class FgtVideoTaskYKY extends FgtVideoTaskBase {
|
|
|
|
|
|
}
|
|
|
|
|
|
- private void preAd(){
|
|
|
- /*String posid =
|
|
|
- val type = if (TextUtils.isEmpty(posid)) "30031" else posid
|
|
|
- val duration = if (TextUtils.isEmpty(mDuration.text)) "0" else mDuration.text.toString()
|
|
|
- var data = "{\"placements\":[{\"pos_id\":$type,\"ad_count\":1}],\"ad_reward_trigger\":\"[]\", \"ad_reward_duration\":$duration, \"ad_reward_automute\": ${isAutoMute()} }"
|
|
|
- data = data.replace("[]", if (TextUtils.isEmpty(mTrigger.text)) "5" else mTrigger.text.toString())
|
|
|
- KleinManager.getInstance()?.loadEncourageAD(applicationContext, data, object: KleinResponseCallback {
|
|
|
- override fun onFail(errorCode: Int) {
|
|
|
+ private void preAd() {
|
|
|
+ int posid = 30113;
|
|
|
+ int duration = 0;
|
|
|
+ String data = "{\"placements\":[{\"pos_id\":" + posid + ",\"ad_count\":" + releaseTask.getRelease_num() + "}],\"ad_reward_trigger\":\"[]\", \"ad_reward_duration\":" + duration + ", \"ad_reward_automute\": ${isAutoMute()} }";
|
|
|
+ /*data = data.replace("[]", if (TextUtils.isEmpty(mTrigger.text)) "5"
|
|
|
+ else mTrigger.text.toString())
|
|
|
+ KleinManager.getInstance() ?.loadEncourageAD(applicationContext, data, object:KleinResponseCallback {
|
|
|
+ override fun onFail(errorCode:Int){
|
|
|
Log.e(TAG, "onFail : $errorCode")
|
|
|
}
|
|
|
|
|
|
- override fun onSuccess(errorCode: Int) {
|
|
|
+ override fun onSuccess(errorCode:Int){
|
|
|
Log.d(TAG, "onSuccess : $errorCode")
|
|
|
}
|
|
|
|
|
|
- override fun onEvent(code: Int) {
|
|
|
+ override fun onEvent(code:Int){
|
|
|
Log.d(TAG, "onEvent : $code")
|
|
|
}
|
|
|
})*/
|