$timestamp, 'nonce' => $nonce, 'apikey' => $apikey, 'signature' => $signature ); return $post; } //获取访问乐快送跑腿接口的请求数组 public static function CreateErrandRequest() { $timestamp = time(); $nonce = LewaimaiString::create_noncestr(9); $apikey = LEKUAISONG_ERRAND_APIKEY; $secretkey = LEKUAISONG_ERRAND_SECRETKEY; $params = array($timestamp, $nonce, $apikey, $secretkey); sort($params, SORT_STRING); $signature = sha1( implode( $params ) ); $post['sign'] = array( 'timestamp' => $timestamp, 'nonce' => $nonce, 'apikey' => $apikey, 'signature' => $signature ); return $post; } }