|
@@ -113,7 +113,7 @@ class Wechat extends Api
|
|
|
$price = intval($request->param('price'));
|
|
|
$uid = intval($request->param('uid'));
|
|
|
$plan_id = WechatPlan::where('price',$price)->value('plan_id');
|
|
|
- $p_id = WechatPlan::where('price',$peice)->value('id');
|
|
|
+ $p_id = WechatPlan::where('price',$price)->value('id');
|
|
|
$plan_id=11;
|
|
|
try {
|
|
|
// $notify_url=Request::instance()->domain() . "/api/wechat/notify/" . $cid; //回调接口
|
|
@@ -156,7 +156,6 @@ class Wechat extends Api
|
|
|
}
|
|
|
$xml=substr($xml, 0, -1);
|
|
|
@file_put_contents("quanju.txt", json_encode($xml).'签约内容');
|
|
|
- die();
|
|
|
$sign=$this->md5_sign($xml,'192006250b4c09247ec02edce69f6a2d');
|
|
|
@file_put_contents("quanju.txt", $sign.'签名');
|
|
|
$url='https://api.mch.weixin.qq.com/papay/entrustweb?'.$xml.'&sign='. $sign;
|
|
@@ -168,7 +167,7 @@ class Wechat extends Api
|
|
|
WechatPlanRecord::create([
|
|
|
'uid' => $uid,
|
|
|
'plan_id' => $p_id,
|
|
|
- 'peice' => $peice,
|
|
|
+ 'price' => $price,
|
|
|
'is_signing' => 0,
|
|
|
'request_serial' => $request_serial,
|
|
|
'contract_code' => $contract_code,
|