|
|
@ -97,7 +97,13 @@ class TestOrderController extends ThinkController
|
|
|
|
public function saveOrder() {
|
|
|
|
public function saveOrder() {
|
|
|
|
|
|
|
|
|
|
|
|
$data = $_GET;
|
|
|
|
$data = $_GET;
|
|
|
|
|
|
|
|
//获取parter_id
|
|
|
|
|
|
|
|
if(isset($data["merchant_id"])){
|
|
|
|
|
|
|
|
$w = [
|
|
|
|
|
|
|
|
"id"=>$data["merchant_id"]
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
$data["partner_type"] = M("payment_merchant","tab_")->where($w)->getField("main_id");
|
|
|
|
|
|
|
|
}
|
|
|
|
// dump($data);die();
|
|
|
|
// dump($data);die();
|
|
|
|
$data['add_time'] = time();
|
|
|
|
$data['add_time'] = time();
|
|
|
|
$data['pay_time'] = strtotime($data['pay_time']);
|
|
|
|
$data['pay_time'] = strtotime($data['pay_time']);
|
|
|
|