|
@@ -277,7 +277,7 @@ func (yp *Yellowpage) GetRelation() error {
|
|
|
r := relation.(map[string]interface{})
|
|
|
var links *[]map[string]interface{}
|
|
|
if d, err := json.Marshal(r["links"]); err == nil && json.Unmarshal(d, &links) == nil && len(*links) > 0 {
|
|
|
- if credit.AIsHasDo(credit.A_CKGXW, util.IntAll(yp.GetSession("credit_a"))) {
|
|
|
+ if !credit.AIsHasDo(credit.A_CKGXW, util.IntAll(yp.GetSession("credit_a"))) {
|
|
|
credit.UpuserCreditSession(yp.GetSession("userId").(string), credit.A_CKGXW, "A", nil, yp.Action)
|
|
|
}
|
|
|
}
|