|
@@ -49,7 +49,7 @@ public class sharematerial extends Controller {
|
|
|
type = whereObject.getLongValue("type");
|
|
|
|
|
|
}
|
|
|
- Long sa_agentsid_temp = userInfo.getAgentID() == 0 ? -1 : userInfo.getAgentID();
|
|
|
+ Long sa_agentsid_temp = userInfo.getAgentID() == 0 ? -1 : userInfo.getAgentID();
|
|
|
ArrayList<Long> sa_saleareaids = userInfo.getSaleAreaIds();
|
|
|
sa_saleareaids.add((long) 0);
|
|
|
//查询条件
|
|
@@ -69,7 +69,7 @@ public class sharematerial extends Controller {
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "素材-列表", pageSize, pageNumber, pageSorting);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
- sqlFactory.addParameter("sa_agentsid", userInfo.getAgentID() == 0 ? -1 : userInfo.getAgentID());
|
|
|
+ sqlFactory.addParameter("sa_agentsid", userInfo.getAgentID() == 0 ? -1 : userInfo.getAgentID());
|
|
|
sqlFactory.addParameter("userid", userid);
|
|
|
sqlFactory.addParameter_SQL("whereSql", whereSql);
|
|
|
String sql = sqlFactory.getSQL();
|
|
@@ -308,7 +308,10 @@ public class sharematerial extends Controller {
|
|
|
String name = content.getString("name");
|
|
|
String channel = content.getString("channel");
|
|
|
String systemclient = content.getString("systemclient");
|
|
|
- this.userid = content.getLong("userid");
|
|
|
+ this.userid = content.getLongValue("userid");
|
|
|
+ if (userid == 0) {
|
|
|
+ return getErrReturnObject().setErrMsg("拉新失败,未检测到有效用户账号").toString();
|
|
|
+ }
|
|
|
String phonenumber = "";
|
|
|
|
|
|
WechatMiniProgram miniProgram = new WechatMiniProgram(systemclient);
|