作者 郭盛
1 个管道 的构建 通过 耗费 10 秒

添加接口

@@ -1844,6 +1844,37 @@ class User extends Api @@ -1844,6 +1844,37 @@ class User extends Api
1844 1844
1845 } 1845 }
1846 1846
  1847 + /**
  1848 + * @ApiTitle (发短信)
  1849 + * @ApiSummary (发短信)
  1850 + * @ApiMethod (POST)
  1851 + * @ApiRoute (/api/user/duan_send)
  1852 + * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
  1853 + *
  1854 + *
  1855 + * @ApiReturn({
  1856 + "code": 1,
  1857 + "msg": "成功",
  1858 + "time": "1571492001",
  1859 + "data": {
  1860 + "order_id"://订单ID
  1861 + }
  1862 + })
  1863 + */
  1864 + public function duan_send(){
  1865 + $user_id = $this->uid;
  1866 + $user = Db::name('user')->where('id',$user_id)->value('mobile');
  1867 +
  1868 + //发送短信,通知客户
  1869 + $mobile = 13780608990;
  1870 + $mobile1 = 15588311507;
  1871 + $content = "【仁甲看见SHOP】提醒您,您有新苹果客户要加入仁甲会大家庭,客户电话为:$user ,请您及时回复!";
  1872 + //发送短信
  1873 + $send = new Pay();
  1874 + $send->sms($mobile,$content);
  1875 + $send->sms($mobile1,$content);
  1876 + }
  1877 +
1847 1878
1848 1879
1849 1880