Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
6eb02dfe2b
@ -1,388 +1 @@
|
|||||||
[
|
[]
|
||||||
{
|
|
||||||
"id": 1000101,
|
|
||||||
"group": 1,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "worldtaskexit_accept_20010",
|
|
||||||
"followtj": "OpenNpcOption_主线入口_原石",
|
|
||||||
"followguide": 1000102,
|
|
||||||
"finger": [
|
|
||||||
"taskDedailsPopup",
|
|
||||||
"btn_star$"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "1000101",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000102,
|
|
||||||
"group": 1,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "",
|
|
||||||
"followtj": "",
|
|
||||||
"followguide": 0,
|
|
||||||
"finger": [
|
|
||||||
"command",
|
|
||||||
"mainCom$.optionList$",
|
|
||||||
"0"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000201,
|
|
||||||
"group": 2,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "worldtasktrigger_20011",
|
|
||||||
"followtj": "OpenNpcOption_20010_熊猫_1",
|
|
||||||
"followguide": 1000202,
|
|
||||||
"finger": [
|
|
||||||
"command",
|
|
||||||
"mainCom$.taskpanel$.mainTaskList.tasklist$",
|
|
||||||
"0"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0.1,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000202,
|
|
||||||
"group": 2,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "",
|
|
||||||
"followtj": "",
|
|
||||||
"followguide": 0,
|
|
||||||
"finger": [
|
|
||||||
"command",
|
|
||||||
"mainCom$.optionList$",
|
|
||||||
"0"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000301,
|
|
||||||
"group": 3,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "worldtaskexit_accept_20011",
|
|
||||||
"followtj": "TriggerQuest_20012",
|
|
||||||
"followguide": 1000302,
|
|
||||||
"finger": [
|
|
||||||
"taskDedailsPopup",
|
|
||||||
"btn_star$"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000302,
|
|
||||||
"group": 3,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "",
|
|
||||||
"followtj": "OpenNpcOption_20020_熊猫_船甲板",
|
|
||||||
"followguide": 1000303,
|
|
||||||
"finger": [
|
|
||||||
"command",
|
|
||||||
"mainCom$.taskpanel$.mainTaskList.tasklist$",
|
|
||||||
"0"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0.1,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000303,
|
|
||||||
"group": 3,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "",
|
|
||||||
"followtj": "",
|
|
||||||
"followguide": 0,
|
|
||||||
"finger": [
|
|
||||||
"maininterface",
|
|
||||||
"mainCom$.optionList$",
|
|
||||||
"0"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000401,
|
|
||||||
"group": 4,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "worldtaskexit_accept_20012",
|
|
||||||
"followtj": "",
|
|
||||||
"followguide": 0,
|
|
||||||
"finger": [
|
|
||||||
"taskDedailsPopup",
|
|
||||||
"btn_star$"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000501,
|
|
||||||
"group": 5,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "worldtaskexit_accept_20020",
|
|
||||||
"followtj": "OpenNpcOption_20020_小怪_船甲板",
|
|
||||||
"followguide": 1000502,
|
|
||||||
"finger": [
|
|
||||||
"taskDedailsPopup",
|
|
||||||
"btn_star$"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1000502,
|
|
||||||
"group": 5,
|
|
||||||
"type": 3,
|
|
||||||
"startPar": "",
|
|
||||||
"parameter": "",
|
|
||||||
"interface": "",
|
|
||||||
"condition": "",
|
|
||||||
"followtj": "",
|
|
||||||
"followguide": 0,
|
|
||||||
"finger": [
|
|
||||||
"maininterface",
|
|
||||||
"mainCom$.optionList$",
|
|
||||||
"0"
|
|
||||||
],
|
|
||||||
"offset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"fingerTime": 0,
|
|
||||||
"objSize": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"objOffset": {
|
|
||||||
"x": 0,
|
|
||||||
"y": 0
|
|
||||||
},
|
|
||||||
"txt": "",
|
|
||||||
"speakerface": 0,
|
|
||||||
"sound": "",
|
|
||||||
"mask": 0,
|
|
||||||
"lock": 0,
|
|
||||||
"uishow": 0,
|
|
||||||
"skiptime": 0,
|
|
||||||
"skip": 0,
|
|
||||||
"skipgroup": 0,
|
|
||||||
"reward": []
|
|
||||||
}
|
|
||||||
]
|
|
File diff suppressed because it is too large
Load Diff
@ -158,7 +158,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": 20030,
|
"key": 20030,
|
||||||
"opencond": "heroic_teaching",
|
"opencond": "",
|
||||||
"lock": 1,
|
"lock": 1,
|
||||||
"lockend": 999,
|
"lockend": 999,
|
||||||
"ontxe": 20020,
|
"ontxe": 20020,
|
||||||
|
@ -359,6 +359,8 @@ const ( //Rpc
|
|||||||
|
|
||||||
Rpc_ModuleBuriedTrigger core.Rpc_Key = "Rpc_ModuleBuriedTrigger" //埋点跨服触发通知
|
Rpc_ModuleBuriedTrigger core.Rpc_Key = "Rpc_ModuleBuriedTrigger" //埋点跨服触发通知
|
||||||
Rpc_OpendCond core.Rpc_Key = "Rpc_OpendCond"
|
Rpc_OpendCond core.Rpc_Key = "Rpc_OpendCond"
|
||||||
|
|
||||||
|
Rpc_ModuleWarorderSettlement core.Rpc_Key = "Rpc_ModuleWarorderSettlement" //战令结算
|
||||||
)
|
)
|
||||||
|
|
||||||
// 事件类型定义处
|
// 事件类型定义处
|
||||||
|
@ -53,8 +53,8 @@ func (this *apiComp) Activityreceive(session comm.IUserSession, req *pb.SociatyA
|
|||||||
conf, ok := this.module.sociatyActivityConf.GetDataMap()[req.Id]
|
conf, ok := this.module.sociatyActivityConf.GetDataMap()[req.Id]
|
||||||
if !ok {
|
if !ok {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ConfigNoFound,
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -68,7 +68,10 @@ func (this *apiComp) Activityreceive(session comm.IUserSession, req *pb.SociatyA
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 发放个人奖励
|
||||||
|
if errdata = this.module.DispenseRes(session, conf.Reward, true); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
// 活跃度领取
|
// 活跃度领取
|
||||||
if err := this.module.modelSociatyTask.activityReceive(req.Id, sociaty.Id, uid); err != nil {
|
if err := this.module.modelSociatyTask.activityReceive(req.Id, sociaty.Id, uid); err != nil {
|
||||||
this.module.Error("活跃度领取", log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "params", Value: req.String()})
|
this.module.Error("活跃度领取", log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "params", Value: req.String()})
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package sociaty
|
package sociaty
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"go_dreamfactory/comm"
|
"go_dreamfactory/comm"
|
||||||
"go_dreamfactory/lego/sys/log"
|
"go_dreamfactory/lego/sys/log"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
@ -78,6 +79,13 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.SociatyReceiveRe
|
|||||||
log.Field{Key: "taskId", Value: req.TaskId},
|
log.Field{Key: "taskId", Value: req.TaskId},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
|
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||||
|
Message: fmt.Sprintf("no found task conf:%d", req.TaskId),
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新公会经验和活跃度
|
// 更新公会经验和活跃度
|
||||||
|
@ -44,6 +44,22 @@ func (this *apiComp) Refuse(session comm.IUserSession, req *pb.SociatyRefuseReq)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 判断改用户是否在申请记录中
|
||||||
|
var flag bool
|
||||||
|
for _, r := range sociaty.GetApplyRecord() {
|
||||||
|
if r.Uid == req.Uid {
|
||||||
|
flag = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if !flag {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_SociatyApplyCancel,
|
||||||
|
Title: pb.ErrorCode_SociatyApplyCancel.ToString(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 已是公会成员
|
// 已是公会成员
|
||||||
if this.module.modelSociaty.isMember(uid, sociaty) {
|
if this.module.modelSociaty.isMember(uid, sociaty) {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
|
@ -115,13 +115,14 @@ func (this *ModelSociatyTask) activityReceive(id int32, sociatyId, uid string) e
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if isUpdate {
|
|
||||||
update := map[string]interface{}{
|
if !isUpdate {
|
||||||
"activityList": sociatyTask.ActivityList,
|
sociatyTask.ActivityList = append(sociatyTask.ActivityList, &pb.SociatyActivity{Id: id, Status: 1})
|
||||||
}
|
|
||||||
return this.ChangeList(sociatyId, uid, update)
|
|
||||||
}
|
}
|
||||||
return nil
|
update := map[string]interface{}{
|
||||||
|
"activityList": sociatyTask.ActivityList,
|
||||||
|
}
|
||||||
|
return this.ChangeList(sociatyId, uid, update)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新任务列表
|
// 更新任务列表
|
||||||
|
Loading…
Reference in New Issue
Block a user