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