@@ -92,7 +92,7 @@ class Api extends Base
Dever::alert('请传入正确的产品id');
}
- if ($name && $mobile && $address) {
+ if ($address_name && $mobile && $address) {
$num = Dever::input('num');
$products = explode(',', $products);
$num = explode(',', $num);
@@ -9,8 +9,8 @@ class Base
public function __construct()
{
# 获取用户信息
- //$this->data['uid'] = Dever::load('passport/applet')->check();
- $this->data['uid'] = 1;
+ $this->data['uid'] = Dever::load('passport/applet')->check();
+ //$this->data['uid'] = 1;
# 获取基本配置
$this->data['config'] = Dever::db('main/config')->one();