正在显示
1 个修改的文件
包含
1 行增加
和
5 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论