|
|
@@ -1009,10 +1009,11 @@ class Pay extends Api
|
|
|
$address = input('address');
|
|
|
$type = input('type');
|
|
|
$img = input('img');
|
|
|
+ $price = input('price');
|
|
|
if (empty($address)&&empty($img)){
|
|
|
$this->error(__('请上传地址或上传收款码'));
|
|
|
}
|
|
|
- Db::name('txjl')->insert(['uid' => $uid, 'address' => $address, 'type' => $type, 'img' => $img, 'add_time' => time()]);
|
|
|
+ Db::name('txjl')->insert(['uid' => $uid, 'address' => $address, 'type' => $type, 'img' => $img,'money'=> $price,'iscl'=>1]);
|
|
|
$this->success('提交成功');
|
|
|
}
|
|
|
public function test()
|