作者 景龙
1 个管道 的构建 失败 耗费 0 秒

调试提现

@@ -9,7 +9,6 @@ use think\Db; @@ -9,7 +9,6 @@ use think\Db;
9 use Yansongda\Pay\Pay; 9 use Yansongda\Pay\Pay;
10 use app\admin\model\Account; 10 use app\admin\model\Account;
11 use app\admin\model\User; 11 use app\admin\model\User;
12 -use app\admin\model\Message;  
13 use think\Log; 12 use think\Log;
14 use fast\Http; 13 use fast\Http;
15 use think\Validate; 14 use think\Validate;
@@ -213,10 +212,7 @@ class Wxpay extends Api @@ -213,10 +212,7 @@ class Wxpay extends Api
213 $user = $userModel->where(['openid'=>$data['openid']])->find(); 212 $user = $userModel->where(['openid'=>$data['openid']])->find();
214 $accountModel = new Account(); 213 $accountModel = new Account();
215 $money = $data['total_fee']/100; 214 $money = $data['total_fee']/100;
216 - $account = $accountModel::create(['uid'=>$user['id'],'type'=>config('site.pay_charge'),'money'=>$money]);  
217 -  
218 - $messageModel = new Message();  
219 - $messageModel::create(['account_id'=>$account->id,'type'=>config('site.pay_charge'),'title'=>config('site.message')]); 215 + $accountModel::create(['uid'=>$user['id'],'type'=>config('site.pay_charge'),'money'=>$money]);
220 //下面这句必须要执行,且在此之前不能有任何输出 216 //下面这句必须要执行,且在此之前不能有任何输出
221 $this->success('成功',$pay->success()); 217 $this->success('成功',$pay->success());
222 } 218 }