...
|
...
|
@@ -110,7 +110,7 @@ class IndexController extends HomeBaseController |
|
|
->find();
|
|
|
if ($re) {
|
|
|
$dataup['id'] = $re['id'];
|
|
|
// session('user.id', $dataup['id']);
|
|
|
session('pay_uid', $dataup['id']);
|
|
|
$res = Db::name('user')->update($dataup);
|
|
|
if ($res) {
|
|
|
return json(['code' => '1', 'msg' => '保存成功']);
|
...
|
...
|
@@ -129,7 +129,7 @@ class IndexController extends HomeBaseController |
|
|
{
|
|
|
|
|
|
$gid = $req->param('gid');
|
|
|
$id = session('user.id');
|
|
|
$id = session('pay_uid');
|
|
|
var_dump($id);
|
|
|
$re = Db::name('user')->where(['id' => $id])->find();
|
|
|
$res = Db::name('goods')->where(['id' => $gid])->find();
|
...
|
...
|
|