|
@@ -170,7 +170,6 @@ class Lave extends Api
|
|
|
['from', 'weixin'],
|
|
|
], $request
|
|
|
);
|
|
|
- @file_put_contents("quanju.txt", json_encode($where)."-测试\r\n", 8);
|
|
|
$where1 = $where;
|
|
|
unset($where1['from']);
|
|
|
$where1['order_id'] = LaveMonthModel::getNewOrderId();
|
|
@@ -178,7 +177,6 @@ class Lave extends Api
|
|
|
// if (empty($contract_display_account)){
|
|
|
// $this->error('用户不存在!');
|
|
|
// }
|
|
|
- @file_put_contents("quanju.txt","-测试1\r\n", 8);
|
|
|
if ($where['amount']>500){
|
|
|
$this->error('捐款金额不能大于500');
|
|
|
}
|
|
@@ -186,17 +184,14 @@ class Lave extends Api
|
|
|
if (!empty($sign)){
|
|
|
$this->error('您已签约,请勿重复签约!');
|
|
|
}
|
|
|
- @file_put_contents("quanju.txt","-测试2\r\n", 8);
|
|
|
if (cache('lave_' . $where['user_id'])) $this->error('正在处理中');
|
|
|
$plan_id=$where1['plan_id'];
|
|
|
// unset($where1['plan_id']);
|
|
|
$where1['contract_code'] = WechatPlanRecord::getNewCode();
|
|
|
$order = LaveMonthModel::create($where1);
|
|
|
- @file_put_contents("quanju.txt","-测试3\r\n", 8);
|
|
|
$where1['contract_display_account']=$where1['name'];
|
|
|
cache('lave_' . $where['user_id'], '1', 10);
|
|
|
if (!$order) $this->error(LaveMonthModel::getErrorInfo());
|
|
|
- @file_put_contents("quanju.txt","-测试4\r\n", 8);
|
|
|
$orderId = $order['order_id'];
|
|
|
$info = compact('orderId');
|
|
|
$order['plan_id'] = $plan_id;
|