...
|
...
|
@@ -563,6 +563,7 @@ class Order extends Api |
|
|
// $openid = Third::get(['user_id'=>$this->auth->id]);
|
|
|
$openid = Third::alias('a')
|
|
|
->join('user b','b.id = a.user_id')
|
|
|
->where('a.user_id',$order['user_id'])
|
|
|
->field('a.openid')
|
|
|
->find();
|
|
|
if (!$openid) $this->error('未注册用户');
|
...
|
...
|
|