嗨,这是我的api,可与邮递员一起使用
$app->put('/mmsg/{id}', function (Request $request, Response $response, array $args) {
require_once('dbconnect.php');
$mmsg_id = $args['id'];
$query = "update mmsg set m_pay=1 where mmsg_id=$mmsg_id";
$result = $contomysql->query($query);
});
我如何通过离子将mmsg_id发送到此
请帮助这是我的大学项目,我被困在这里。
答案 0 :(得分:0)
在/
中使用// Build the rest of the breadcrumbs
// helper variable to assemble the path, initialized as empty string
$tempPath = '';
foreach ($path AS $x => $crumb) {
// Our "title" is the text that will be displayed (strip out .php and turn '_' into a space)
$title = ucwords(str_replace(Array('.html', '.php', '_', '-'), Array('', '', ' ', ' '), $crumb));
// append / and current path segment
$tempPath .= '/' . $crumb;
// If we are not on the last index, then display an <a> tag
if ($x != $last)
// insert this temporary path into link href, and add .html
$breadcrumbs[] = "<a href=\"$tempPath.html\">$title</a>";
// Otherwise, just display the title (minus)
else
$breadcrumbs[] = $title;
}
模块。
HttpClient
PUT 请求具有3个参数。
您可以在options参数中发送HttpHeaders / HttpParams。
示例:
angular/common/http
更多信息,请参见documentation.