This following is my useful resource:
For clearly learn, I delete some line.
/** * Implementation of hook_services_resources(). */ operate baidu_push_services_services_resources() { $assets = array(); $assets['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 $assets; }
In an effort to take a look at my 'entry callback'
operate will probably be invoked, I at all times return FALSE
in my 'entry callback'
operate:
operate _message_access($op = 'view', $args = array()) { return FALSE; }
However when I attempt to use curl
command line to check with no SESSION and no Token, however It work!(return Drupal Development Company proper outcome to me), Did that imply 'entry callback'
not be invoked?
So I attempt to use drush cc all
to clear cache, However nonetheless above drawback.