<?php $post = $_POST; $sign = $_POST['sign']; unset($post['sign']); $appsecret = '123456789';//用户appsecret if(checkSign($post, $appsecret, $sign)) { $type = trim($_POST['type']); $orderno = trim($_POST['orderno']); $number = trim($_POST['number']); $logisticsstatus = trim($_POST['logisticsstatus']); $deliverymobile = trim($_POST['deliverymobile']); $list = json_decode(trim($_POST['list']), true); foreach($list as $val) { $time = trim($val['time']); $city = trim($val['city']); $branch = trim($val['branch']); $nextcity = trim($val['nextcity']); $nextbranch = trim($val['nextbranch']); $description = trim($val['description']); } echo 'success'; exit(); }