作者 chencheng

6

... ... @@ -286,9 +286,10 @@ class Wechat extends Api
*/
public function prepare_order($order_no = ''){
$user = $this->auth->getUserinfo();
$user_id = $this->auth->id;
if(empty($user_id)){
print_r($user);return;
if(empty($user)){
return $this->error('预下单的用户信息错误');
}
... ...