...
|
...
|
@@ -1844,6 +1844,37 @@ class User extends Api |
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (发短信)
|
|
|
* @ApiSummary (发短信)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiRoute (/api/user/duan_send)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
*
|
|
|
*
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1571492001",
|
|
|
"data": {
|
|
|
"order_id"://订单ID
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
public function duan_send(){
|
|
|
$user_id = $this->uid;
|
|
|
$user = Db::name('user')->where('id',$user_id)->value('mobile');
|
|
|
|
|
|
//发送短信,通知客户
|
|
|
$mobile = 13780608990;
|
|
|
$mobile1 = 15588311507;
|
|
|
$content = "【仁甲看见SHOP】提醒您,您有新苹果客户要加入仁甲会大家庭,客户电话为:$user ,请您及时回复!";
|
|
|
//发送短信
|
|
|
$send = new Pay();
|
|
|
$send->sms($mobile,$content);
|
|
|
$send->sms($mobile1,$content);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|