This following is my resource:
For clearly read, I delete some line.
/** * Implementation of hook_services_resources(). */function baidu_push_services_services_resources() { $resources = array(); $resources['message']['actions']['send'] = ['file' => array('type' => 'inc','module' => 'baidu_push_services','name' => 'baidu_push_services', ),'access callback' => '_message_access','callback' => 'baidu_push_services_send','args' => array( array('name' => 'uid','type' => 'string','source' => 'data','optional' => FALSE, ), ]; return $resources;}
In order to test my 'access callback'
function will be invoked, I always return FALSE
in my 'access callback'
function:
function _message_access($op = 'view', $args = array()) { return FALSE;}
But when I try to use curl
command line to test with no SESSION and no Token, but It work!(return the right result to me), Did that mean 'access callback'
not be invoked?
So I try to use drush cc all
to clear cache, But still above problem.