Ver código fonte

保利威授权验证获取用户信息接口调整

沈静伟 4 anos atrás
pai
commit
ce28cf7e8b

+ 5 - 2
src/dsb/com/cnd3b/common/restful/WebClientRest.java

@@ -21,6 +21,7 @@ import com.cnd3b.utility.wechatpay.jsapipay.POJO.JSQueryOrderRequest;
 import com.cnd3b.utility.wechatpay.jsapipay.POJO.JSWechatOrder;
 import com.cnd3b.utility.wechatpay.jsapipay.jsapipay;
 import com.cnd3b.utility.wechatpay.nativepay.nativepay;
+import jdk.nashorn.internal.objects.annotations.Getter;
 import net.polyv.live.v1.util.LiveSignUtil;
 import org.dom4j.dom.DOMElement;
 import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
@@ -538,10 +539,12 @@ public class WebClientRest {
         return new sysmsg().getCustMsg();
     }
 
-    @POST
+    @GET
     @Path("polyvAuth")
-    public String polyvAuth(@FormParam("channelId") String channelId, @FormParam("userid") String userid, @FormParam("ts") Long ts, @FormParam("token") String token) {
+    public String polyvAuth(@QueryParam("channelId") String channelId, @QueryParam("userid") String userid, @QueryParam("ts") Long ts, @QueryParam("token") String token) {
 
+        System.err.println(channelId);
+        System.err.println(userid);
         JSONObject result = new JSONObject();
         long timeMillis = System.currentTimeMillis();
         long diffTime = Math.abs(timeMillis - ts);

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/enterprise/live/live.java

@@ -131,6 +131,7 @@ public class live extends Controller {
             return getErrReturnObject().toString();
         } else {
             dbConnect.runSqlUpdate("update tlive set fisneedauth=1,secretkey='" + secretKey + "' where siteid='" + siteid + "' and tliveid='" + tliveid + "'");
+            //需将改为新的直播观看地址
             return queryChannelMain();
         }
     }