uid; redis_lock_exits($key_name); $label = input('label', 0); $type = input('type'); if (empty($type)) { return V(0, 'type参数错误'); } $reslut = model('GiftNew')->get_gift_list($this->uid, $type, $label); redis_unlocks($key_name); return V($reslut['code'], $reslut['msg'], $reslut['data']); } }