|
@@ -300,14 +300,14 @@ func (this *EntInfo) Update() bool {
|
|
|
}
|
|
|
|
|
|
type Examine struct {
|
|
|
- EntId int64
|
|
|
- AccountId int64
|
|
|
- ExamineId string
|
|
|
- AuthType string
|
|
|
- Reason string
|
|
|
- AuditUser string
|
|
|
- Mysql *mysql.Mysql
|
|
|
- ResourceLib resource.Resource
|
|
|
+ EntId int64
|
|
|
+ EntAccountId int64
|
|
|
+ ExamineId string
|
|
|
+ AuthType string
|
|
|
+ Reason string
|
|
|
+ AuditUser string
|
|
|
+ Mysql *mysql.Mysql
|
|
|
+ ResourceLib resource.Resource
|
|
|
}
|
|
|
|
|
|
//审核
|
|
@@ -329,13 +329,13 @@ func (this *Examine) EntExamine() bool {
|
|
|
|
|
|
//开通权限
|
|
|
req := &resourcepb.PowerReq{
|
|
|
- Appid: "10000",
|
|
|
- GoodsCode: GOODSCODE_XXFB,
|
|
|
- EntId: this.EntId,
|
|
|
- AccountId: this.AccountId,
|
|
|
- Type: 1,
|
|
|
- GoodsSpecId: 4,
|
|
|
- BuyNum: 1,
|
|
|
+ Appid: "10000",
|
|
|
+ GoodsCode: GOODSCODE_XXFB,
|
|
|
+ EntId: this.EntId,
|
|
|
+ EntAccountId: this.EntAccountId,
|
|
|
+ Type: 1,
|
|
|
+ GoodsSpecId: 4,
|
|
|
+ BuyNum: 1,
|
|
|
}
|
|
|
resp, err := this.ResourceLib.PowerHandle(context.Background(), req)
|
|
|
//0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权
|
|
@@ -608,23 +608,23 @@ func (this *CheckEnt) Info() *EntInfoData {
|
|
|
}
|
|
|
|
|
|
type UpdateEnt struct {
|
|
|
- EntId int64
|
|
|
- AccountId int64
|
|
|
- UpdateType int64
|
|
|
- Mysql *mysql.Mysql
|
|
|
- ResourceLib resource.Resource
|
|
|
+ EntId int64
|
|
|
+ EntAccountId int64
|
|
|
+ UpdateType int64
|
|
|
+ Mysql *mysql.Mysql
|
|
|
+ ResourceLib resource.Resource
|
|
|
}
|
|
|
|
|
|
//冻结解冻用户 1-冻结 2-解冻
|
|
|
func (this *UpdateEnt) UpdateEnt() (int64, string) {
|
|
|
needUpdate := false
|
|
|
req := &resourcepb.PowerReq{
|
|
|
- Appid: "10000",
|
|
|
- GoodsCode: GOODSCODE_XXFB,
|
|
|
- EntId: this.EntId,
|
|
|
- AccountId: this.AccountId,
|
|
|
- Type: 1, //1:开通权益 -1:取消权益
|
|
|
- GoodsSpecId: 4,
|
|
|
+ Appid: "10000",
|
|
|
+ GoodsCode: GOODSCODE_XXFB,
|
|
|
+ EntId: this.EntId,
|
|
|
+ EntAccountId: this.EntAccountId,
|
|
|
+ Type: 1, //1:开通权益 -1:取消权益
|
|
|
+ GoodsSpecId: 4,
|
|
|
}
|
|
|
//解冻
|
|
|
rdata := this.Mysql.FindOne(Entniche_info, map[string]interface{}{
|