|
@@ -115,6 +115,8 @@ class Wechat extends Api
|
|
|
$uid = intval($request->param('uid'));
|
|
|
$plan_id = WechatPlan::where('price', $price)->value('plan_id');
|
|
|
$p_id = WechatPlan::where('price', $price)->value('id');
|
|
|
+ var_dump($plan_id);
|
|
|
+ var_dump($p_id);die();
|
|
|
// $plan_id = 11;
|
|
|
// $p_id = 12;
|
|
|
try {
|
|
@@ -179,7 +181,8 @@ class Wechat extends Api
|
|
|
'wechat_plan_id' => $plan_id,
|
|
|
]);
|
|
|
// die();
|
|
|
- return $response;
|
|
|
+ $this->success('获取成功', $response);
|
|
|
+// return $response;
|
|
|
} catch (Exception $e) {
|
|
|
var_dump($e->getMessage());
|
|
|
@file_put_contents("error.txt", $e->getFile() . '-', $e->getLine(), '-' . $e->getMessage());
|