|
@@ -11,18 +11,18 @@ class Present extends Base
|
|
|
public function send()
|
|
|
{
|
|
|
$send_phone = '18632645580';// 赠送人手机号
|
|
|
- $receipt_phone = '15900611139';// 被赠送人手机号
|
|
|
+ $receipt_phone = '17666660370';// 被赠送人手机号
|
|
|
$send_user = Db::name('store_member')->field('id')->where('phone',$send_phone)->where('is_deleted',0)->find();
|
|
|
$receipt_user = Db::name('store_member')->field('id')->where('phone',$receipt_phone)->where('is_deleted',0)->find();
|
|
|
$list = Db::name('store_order_info')
|
|
|
->where('mid',$send_user['id'])
|
|
|
->where('status','neq','2')
|
|
|
->where('is_destruction',1)
|
|
|
- ->where('c_id',16)
|
|
|
+ ->where('c_id',11)
|
|
|
->where('collectors_hash','<>','')
|
|
|
->where('type','<>',3)
|
|
|
->where('resale_status',1)
|
|
|
- ->where('id','<', 40771)
|
|
|
+ ->where('id','<', 33747)
|
|
|
->order('id asc')
|
|
|
->limit(0,780)
|
|
|
->select();
|
|
@@ -31,7 +31,7 @@ class Present extends Base
|
|
|
$send_num = 0;
|
|
|
$error_ids =[];
|
|
|
var_dump(count($list));
|
|
|
- //die();
|
|
|
+ die();
|
|
|
foreach ($list as $v) {
|
|
|
$res = static::examples($send_user['id'],$v['id'],$receipt_phone);
|
|
|
if ($res['status'] == 1) $send_num++;
|