diff --git a/Application/Admin/Controller/TestOrderController.class.php b/Application/Admin/Controller/TestOrderController.class.php index e6cb886ea..8d9a3856b 100644 --- a/Application/Admin/Controller/TestOrderController.class.php +++ b/Application/Admin/Controller/TestOrderController.class.php @@ -97,7 +97,13 @@ class TestOrderController extends ThinkController public function saveOrder() { $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(); $data['add_time'] = time(); $data['pay_time'] = strtotime($data['pay_time']);